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);