mirror of https://github.com/mpv-player/mpv
Adjust wayland defines
This commit is contained in:
parent
2826dcff8f
commit
f330884b0a
|
@ -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"
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue