egl/wayland: define set_cloexec_or_close only when mkostemp is not present
authorBoyan Ding <boyan.j.ding@gmail.com>
Fri, 21 Aug 2015 13:44:36 +0000 (21:44 +0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 22 Aug 2015 11:59:01 +0000 (12:59 +0100)
commitd7bafcafd329d23ab0c76e3a6ae06277506f50f3
tree3d496584f9002e843c1d2f7b7458037948a9ab80
parentec256eceedd0a00b41c2c94d5a32609f0e1870b2
egl/wayland: define set_cloexec_or_close only when mkostemp is not present

Fixes a compiler warning of defined but not used function when
HAVE_MKOSTEMP is defined.

Fixes: eb3e2562a4b(configure.ac: check for mkostemp())
Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
src/egl/drivers/dri2/platform_wayland.c