Skip to content

Commit

Permalink
ROMIO: Fix header include order
Browse files Browse the repository at this point in the history
adio.h must be included first before any system headers so that config
settings are taken into account. Fixes an issue with inconsistent
types for off_t when using the fallback versions of pwrite/pread.

Signed-off-by: Rob Latham <robl@mcs.anl.gov>
  • Loading branch information
raffenet committed Oct 14, 2016
1 parent 245f4c1 commit 4fcffbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mpi/romio/adio/common/ad_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/


#include "adio.h"
#include <unistd.h>

#include "adio.h"
#ifdef AGGREGATION_PROFILE
#include "mpe.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/mpi/romio/adio/common/ad_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/


#include "adio.h"
#include <unistd.h>

#include "adio.h"
#ifdef AGGREGATION_PROFILE
#include "mpe.h"
#endif
Expand Down

0 comments on commit 4fcffbe

Please sign in to comment.