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

main
Sam Lantinga 2021-12-14 12:42:39 -08:00
parent 7f5339e6c4
commit c326ff7c6f
1 changed files with 2 additions and 1 deletions

View File

@ -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