Fixed build warning on iOS
diff --git a/include/SDL_config_iphoneos.h b/include/SDL_config_iphoneos.h
index 42b4a5d..7cd7b6f 100644
--- a/include/SDL_config_iphoneos.h
+++ b/include/SDL_config_iphoneos.h
@@ -134,6 +134,7 @@
#define HAVE_NANOSLEEP 1
#define HAVE_SYSCONF 1
#define HAVE_SYSCTLBYNAME 1
+#define HAVE_O_CLOEXEC 1
/* enable iPhone version of Core Audio driver */
#define SDL_AUDIO_DRIVER_COREAUDIO 1
diff --git a/src/SDL_internal.h b/src/SDL_internal.h
index c06a477..3691282 100644
--- a/src/SDL_internal.h
+++ b/src/SDL_internal.h
@@ -51,7 +51,7 @@
#include "SDL_config.h"
-#ifndef HAVE_O_CLOEXEC
+#if !defined(O_CLOEXEC) && !defined(HAVE_O_CLOEXEC)
#define O_CLOEXEC 0
#endif