From f330884b0ae2dac81983e04cc449d4d07aa64c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Forysiuk?= Date: Mon, 4 Nov 2013 21:24:00 +0100 Subject: [PATCH] Adjust wayland defines --- configure | 4 ++-- video/out/vo_wayland.c | 2 +- 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);