equal
deleted
inserted
replaced
37 #include <string.h> |
37 #include <string.h> |
38 #include <stdlib.h> |
38 #include <stdlib.h> |
39 #include <dlfcn.h> |
39 #include <dlfcn.h> |
40 #include <limits.h> |
40 #include <limits.h> |
41 |
41 |
42 #if defined(__solaris__) && !defined(NAME_MAX) |
|
43 #define NAME_MAX MAXNAMLEN |
|
44 #endif |
|
45 |
|
46 #include "jni.h" |
42 #include "jni.h" |
47 #include "jni_util.h" |
43 #include "jni_util.h" |
48 #include "jlong.h" |
44 #include "jlong.h" |
49 #include "jvm.h" |
45 #include "jvm.h" |
50 #include "io_util.h" |
46 #include "io_util.h" |
51 #include "io_util_md.h" |
47 #include "io_util_md.h" |
52 #include "java_io_FileSystem.h" |
48 #include "java_io_FileSystem.h" |
53 #include "java_io_UnixFileSystem.h" |
49 #include "java_io_UnixFileSystem.h" |
54 |
50 |
|
51 #if defined(_AIX) |
|
52 #if !defined(NAME_MAX) |
|
53 #define NAME_MAX MAXNAMLEN |
|
54 #endif |
|
55 #define DIR DIR64 |
|
56 #define opendir opendir64 |
|
57 #define closedir closedir64 |
|
58 #endif |
|
59 |
|
60 #if defined(__solaris__) && !defined(NAME_MAX) |
|
61 #define NAME_MAX MAXNAMLEN |
|
62 #endif |
|
63 |
55 #if defined(_ALLBSD_SOURCE) |
64 #if defined(_ALLBSD_SOURCE) |
56 #define dirent64 dirent |
65 #define dirent64 dirent |
57 #define readdir64_r readdir_r |
66 #define readdir64_r readdir_r |
58 #define stat64 stat |
67 #define stat64 stat |
59 #ifndef MACOSX |
68 #ifndef MACOSX |
60 #define statvfs64 statvfs |
69 #define statvfs64 statvfs |
61 #endif |
70 #endif |
62 #endif |
71 #endif |
63 |
72 |
64 /* -- Field IDs -- */ |
73 /* -- Field IDs -- */ |
65 |
74 |
66 static struct { |
75 static struct { |