]> git.mxchange.org Git - flightgear.git/commitdiff
Fix Linux build
authorJames Turner <zakalawe@mac.com>
Sat, 16 Nov 2013 09:31:18 +0000 (09:31 +0000)
committerJames Turner <zakalawe@mac.com>
Sat, 16 Nov 2013 09:31:18 +0000 (09:31 +0000)
Linux needs explicit includes for open() and flags.

src/Main/fg_init.cxx

index f478098b5dbc73b4239547645b8f296493252abe..f24c0f5288584ded740159312cfec270f7ec6144 100644 (file)
 #  include <process.h>          // _getpid()
 #  include <Windows.h>
 #  define isatty _isatty
+#else
+// for open() and options
+#  include <sys/types.h>        
+#  include <sys/stat.h>
+#  include <fcntl.h>
 #endif
 
 #include <string>