Show More
@@ -7,6 +7,11 b'' | |||||
7 | * GNU General Public License version 2 or any later version. |
|
7 | * GNU General Public License version 2 or any later version. | |
8 | */ |
|
8 | */ | |
9 |
|
9 | |||
|
10 | #if defined(__sun) && !defined(_XOPEN_SOURCE) | |||
|
11 | /* msg_control is used */ | |||
|
12 | #define _XOPEN_SOURCE 600 | |||
|
13 | #endif | |||
|
14 | ||||
10 | #include <arpa/inet.h> /* for ntohl(), htonl() */ |
|
15 | #include <arpa/inet.h> /* for ntohl(), htonl() */ | |
11 | #include <assert.h> |
|
16 | #include <assert.h> | |
12 | #include <ctype.h> |
|
17 | #include <ctype.h> | |
@@ -26,6 +31,10 b'' | |||||
26 | #include "procutil.h" |
|
31 | #include "procutil.h" | |
27 | #include "util.h" |
|
32 | #include "util.h" | |
28 |
|
33 | |||
|
34 | #ifndef O_DIRECTORY | |||
|
35 | #define O_DIRECTORY O_RDONLY | |||
|
36 | #endif | |||
|
37 | ||||
29 | enum { |
|
38 | enum { | |
30 | CAP_GETENCODING = 0x0001, |
|
39 | CAP_GETENCODING = 0x0001, | |
31 | CAP_RUNCOMMAND = 0x0002, |
|
40 | CAP_RUNCOMMAND = 0x0002, |
General Comments 0
You need to be logged in to leave comments.
Login now