summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaweł Forysiuk <tuxator@o2.pl>2013-11-04 21:24:00 +0100
committerwm4 <wm4@nowhere>2013-11-04 21:28:34 +0100
commitf330884b0ae2dac81983e04cc449d4d07aa64c66 (patch)
tree993348e845ba7da745ef67a27678f75952b8bf56
parent2826dcff8f8e3b95dae7a1bbfb5c6809ca7b2aa2 (diff)
downloadmpv-f330884b0ae2dac81983e04cc449d4d07aa64c66.tar.bz2
mpv-f330884b0ae2dac81983e04cc449d4d07aa64c66.tar.xz
Adjust wayland defines
-rwxr-xr-xconfigure4
-rw-r--r--video/out/vo_wayland.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 5e23960e44..09f4ed8161 100755
--- a/configure
+++ b/configure
@@ -1712,7 +1712,7 @@ if test "$_wayland" = yes || test "$_wayland" = auto; then
fi
if test "$_wayland" = yes; then
res_comment=""
- def_wayland='#define HAVE_WAYLAND'
+ def_wayland='#define HAVE_WAYLAND 1'
vomodules="wayland $vomodules"
else
res_comment="version >= $_wlver"
@@ -2131,7 +2131,7 @@ if test "$_gl" = yes ; then
res_comment="$res_comment x11"
fi
if test "$_gl_wayland" = yes ; then
- def_gl_wayland='#define HAVE_GL_WAYLAND'
+ def_gl_wayland='#define HAVE_GL_WAYLAND 1'
res_comment="$res_comment wayland"
fi
vomodules="opengl $vomodules"
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c
index ff6d677e15..b1f99bd26f 100644
--- a/video/out/vo_wayland.c
+++ b/video/out/vo_wayland.c
@@ -177,7 +177,7 @@ static int create_tmpfile_cloexec(char *tmpname)
{
int fd;
-#if HAVE_MKOSTEMP
+#ifdef HAVE_MKOSTEMP
fd = mkostemp(tmpname, O_CLOEXEC);
if (fd >= 0)
unlink(tmpname);