equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
97 #include <windows.h> |
97 #include <windows.h> |
98 #else /* Unix */ |
98 #else /* Unix */ |
99 #include <unistd.h> |
99 #include <unistd.h> |
100 #include <dirent.h> |
100 #include <dirent.h> |
101 #endif /* Unix */ |
101 #endif /* Unix */ |
|
102 |
|
103 #if defined(_AIX) |
|
104 #define DIR DIR64 |
|
105 #define dirent dirent64 |
|
106 #define opendir opendir64 |
|
107 #define readdir readdir64 |
|
108 #define closedir closedir64 |
|
109 #endif |
102 |
110 |
103 static int |
111 static int |
104 exists(const char* filename) |
112 exists(const char* filename) |
105 { |
113 { |
106 #ifdef _WIN32 |
114 #ifdef _WIN32 |