The macro HAVE_MKOSTEMP was never defined.

Cc: Axel Davy <axel.d...@ens.fr>
Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com>
---
 src/egl/drivers/dri2/platform_wayland.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/egl/drivers/dri2/platform_wayland.c 
b/src/egl/drivers/dri2/platform_wayland.c
index 9005eb7..bdccee3 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -1255,17 +1255,11 @@ create_tmpfile_cloexec(char *tmpname)
 {
    int fd;
 
-#ifdef HAVE_MKOSTEMP
-   fd = mkostemp(tmpname, O_CLOEXEC);
-   if (fd >= 0)
-      unlink(tmpname);
-#else
    fd = mkstemp(tmpname);
    if (fd >= 0) {
       fd = set_cloexec_or_close(fd);
       unlink(tmpname);
    }
-#endif
 
    return fd;
 }
-- 
2.4.5

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to