Commit c326ff7c6fe7e1fb9b3a7048fb959709a4e4d679

Sam Lantinga 2021-12-14T12:42:39

Re-enabled the O_CLOEXEC definition so config headers can be fixed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/SDL_internal.h b/src/SDL_internal.h
index 3691282..e6da527 100644
--- a/src/SDL_internal.h
+++ b/src/SDL_internal.h
@@ -51,7 +51,8 @@
 
 #include "SDL_config.h"
 
-#if !defined(O_CLOEXEC) && !defined(HAVE_O_CLOEXEC)
+/* If you run into a warning that O_CLOEXEC is redefined, update the SDL configuration header for your platform to add HAVE_O_CLOEXEC */
+#ifndef HAVE_O_CLOEXEC
 #define O_CLOEXEC                       0
 #endif