< prev index next >
src/java.base/unix/native/libjava/UnixFileSystem_md.c
Print this page
rev 16382 : 8171906: Changes for 8148023 break AIX build
*** 37,66 ****
#include <string.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <limits.h>
- #if defined(__solaris__) && !defined(NAME_MAX)
- #define NAME_MAX MAXNAMLEN
- #endif
-
#include "jni.h"
#include "jni_util.h"
#include "jlong.h"
#include "jvm.h"
#include "io_util.h"
#include "io_util_md.h"
#include "java_io_FileSystem.h"
#include "java_io_UnixFileSystem.h"
! #if defined(_ALLBSD_SOURCE)
! #define dirent64 dirent
! #define readdir64_r readdir_r
! #define stat64 stat
! #ifndef MACOSX
! #define statvfs64 statvfs
#endif
#endif
/* -- Field IDs -- */
static struct {
--- 37,75 ----
#include <string.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <limits.h>
#include "jni.h"
#include "jni_util.h"
#include "jlong.h"
#include "jvm.h"
#include "io_util.h"
#include "io_util_md.h"
#include "java_io_FileSystem.h"
#include "java_io_UnixFileSystem.h"
! #if defined(_AIX)
! #if !defined(NAME_MAX)
! #define NAME_MAX MAXNAMLEN
! #endif
! #define DIR DIR64
! #define opendir opendir64
! #define closedir closedir64
#endif
+
+ #if defined(__solaris__) && !defined(NAME_MAX)
+ #define NAME_MAX MAXNAMLEN
+ #endif
+
+ #if defined(_ALLBSD_SOURCE)
+ #define dirent64 dirent
+ #define readdir64_r readdir_r
+ #define stat64 stat
+ #ifndef MACOSX
+ #define statvfs64 statvfs
+ #endif
#endif
/* -- Field IDs -- */
static struct {
< prev index next >