[Mesa-dev] [PATCH 7/7] egl/wayland: remove dead code

Emil Velikov emil.l.velikov at gmail.com
Fri Jul 10 10:49:19 PDT 2015


The macro HAVE_MKOSTEMP was never defined.

Cc: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Emil Velikov <emil.l.velikov at 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



More information about the mesa-dev mailing list