Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
yeah, yeah, linux. Don't bother. O_BINARY is a nasty flag from this nasty windows...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 16 Dec 2004 00:05:54 +0000 (00:05 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 16 Dec 2004 00:05:54 +0000 (00:05 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@649 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/portable.h

index 62ff5d7..a3b1866 100644 (file)
@@ -87,7 +87,11 @@ const char *gras_wsa_err2string(int errcode);
 #include <fcntl.h>
 
 #ifdef HAVE_SYS_STAT_H
-#include <sys/stat.h>
+#  include <sys/stat.h>
+#endif
+
+#ifndef O_BINARY
+#  define O_BINARY 0
 #endif
 
 /****