equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2017, 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. |
7 * published by the Free Software Foundation. |
38 |
38 |
39 /* |
39 /* |
40 * This file is currently collecting system-specific dregs for the |
40 * This file is currently collecting system-specific dregs for the |
41 * JNI conversion, which should be sorted out later. |
41 * JNI conversion, which should be sorted out later. |
42 */ |
42 */ |
43 #ifdef __NetBSD__ |
|
44 /* |
|
45 * Since we are compiling with c++, we need the following to make c macros |
|
46 * visible. |
|
47 */ |
|
48 # if !defined(__STDC_LIMIT_MACROS) |
|
49 # define __STDC_LIMIT_MACROS 1 |
|
50 # endif |
|
51 # if !defined(__STDC_CONSTANT_MACROS) |
|
52 # define __STDC_CONSTANT_MACROS 1 |
|
53 # endif |
|
54 # if !defined(__STDC_FORMAT_MACROS) |
|
55 # define __STDC_FORMAT_MACROS 1 |
|
56 # endif |
|
57 #endif |
|
58 |
43 |
59 #include <dirent.h> /* For DIR */ |
44 #include <dirent.h> /* For DIR */ |
60 #include <sys/param.h> /* For MAXPATHLEN */ |
45 #include <sys/param.h> /* For MAXPATHLEN */ |
61 #include <sys/socket.h> /* For socklen_t */ |
46 #include <sys/socket.h> /* For socklen_t */ |
62 #include <unistd.h> /* For F_OK, R_OK, W_OK */ |
47 #include <unistd.h> /* For F_OK, R_OK, W_OK */ |