From c326ff7c6fe7e1fb9b3a7048fb959709a4e4d679 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 14 Dec 2021 12:42:39 -0800
Subject: [PATCH] Re-enabled the O_CLOEXEC definition so config headers can be
fixed
---
src/SDL_internal.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/SDL_internal.h b/src/SDL_internal.h
index 369128237d5..e6da5271f81 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