Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make sure to define _FILE_OFFSET_BITS as early as possible
[simgrid.git] / src / mc / remote / RemoteClient.cpp
index 6d239f2..8766ad5 100644 (file)
@@ -3,6 +3,8 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
+#define _FILE_OFFSET_BITS 64 /* needed for pread_whole to work as expected on 32bits */
+
 #include "src/mc/remote/RemoteClient.hpp"
 
 #include "xbt/file.hpp"
 #include "src/mc/remote/RemoteClient.hpp"
 
 #include "xbt/file.hpp"
@@ -10,8 +12,6 @@
 #include "src/mc/mc_smx.hpp"
 #include "src/mc/sosp/mc_snapshot.hpp"
 
 #include "src/mc/mc_smx.hpp"
 #include "src/mc/sosp/mc_snapshot.hpp"
 
-#define _FILE_OFFSET_BITS 64 /* needed for pread_whole to work as expected on 32bits */
-
 #include <fcntl.h>
 #include <libunwind-ptrace.h>
 #include <sys/mman.h> // PROT_*
 #include <fcntl.h>
 #include <libunwind-ptrace.h>
 #include <sys/mman.h> // PROT_*