Adjust wayland defines

This commit is contained in:
Paweł Forysiuk 2013-11-04 21:24:00 +01:00 committed by wm4
parent 2826dcff8f
commit f330884b0a
2 changed files with 3 additions and 3 deletions

4
configure vendored
View File

@ -1712,7 +1712,7 @@ if test "$_wayland" = yes || test "$_wayland" = auto; then
fi fi
if test "$_wayland" = yes; then if test "$_wayland" = yes; then
res_comment="" res_comment=""
def_wayland='#define HAVE_WAYLAND' def_wayland='#define HAVE_WAYLAND 1'
vomodules="wayland $vomodules" vomodules="wayland $vomodules"
else else
res_comment="version >= $_wlver" res_comment="version >= $_wlver"
@ -2131,7 +2131,7 @@ if test "$_gl" = yes ; then
res_comment="$res_comment x11" res_comment="$res_comment x11"
fi fi
if test "$_gl_wayland" = yes ; then 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" res_comment="$res_comment wayland"
fi fi
vomodules="opengl $vomodules" vomodules="opengl $vomodules"

View File

@ -177,7 +177,7 @@ static int create_tmpfile_cloexec(char *tmpname)
{ {
int fd; int fd;
#if HAVE_MKOSTEMP #ifdef HAVE_MKOSTEMP
fd = mkostemp(tmpname, O_CLOEXEC); fd = mkostemp(tmpname, O_CLOEXEC);
if (fd >= 0) if (fd >= 0)
unlink(tmpname); unlink(tmpname);