Browse Source

AIX LFS support

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56923 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 years ago
parent
commit
9b9ca0e144
1 changed files with 8 additions and 0 deletions
  1. 8 0
      include/config.h.in

+ 8 - 0
include/config.h.in

@@ -302,6 +302,14 @@ typedef struct _stati64 STRUCT_STAT;
 
 #endif /* MINGW32 LFS */
 
+/* IBM AIX: 
+ * -D_LARGE_FILES should be sufficient,
+ * but on some systems, struct stat64 must be set explicitly */
+#if defined(_AIX) && defined(__GNUC__)
+#define _STRUCT_STAT_
+typedef struct stat64 STRUCT_STAT;
+#endif
+
 #endif	/* HAVE_LARGEFILES */