diff --git a/panda/src/osxdisplay/osxGraphicsWindow.mm b/panda/src/osxdisplay/osxGraphicsWindow.mm index 243e3a2e5d..58228cfeea 100644 --- a/panda/src/osxdisplay/osxGraphicsWindow.mm +++ b/panda/src/osxdisplay/osxGraphicsWindow.mm @@ -9,6 +9,17 @@ // //////////////////////////////////////////////////////////////////// +// We include these system header files first, because there is a +// namescope conflict between them and some other header file that +// gets included later (in particular, TCP_NODELAY must not be a +// #define symbol for these headers to be included properly). + +#include +#include +#include +#include +#include + #include "osxGraphicsWindow.h" #include "config_osxdisplay.h" #include "osxGraphicsPipe.h" @@ -23,13 +34,6 @@ #include "virtualFileSystem.h" #include "config_util.h" #include "pset.h" - -#include -#include -#include -#include -#include - #include "pmutex.h" ////////////////////////////////////