mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 04:42:10 +00:00
Adjust wayland defines
This commit is contained in:
parent
2826dcff8f
commit
f330884b0a
4
configure
vendored
4
configure
vendored
@ -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"
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user