Commit 39aa762e 39aa762e859a5a5bd12ceafbecb3dfe901c2e44b by Sam Roberts

Work around missing <sysexits.h>.

1 parent 4bbd9e2e
...@@ -28,13 +28,26 @@ ...@@ -28,13 +28,26 @@
28 #include <grp.h> 28 #include <grp.h>
29 #include <stdarg.h> 29 #include <stdarg.h>
30 #include <sys/stat.h> 30 #include <sys/stat.h>
31 #include <sysexits.h>
32 #include <sys/socket.h> 31 #include <sys/socket.h>
33 #include <netinet/in.h> 32 #include <netinet/in.h>
34 #include <arpa/inet.h> 33 #include <arpa/inet.h>
35 #include <netdb.h> 34 #include <netdb.h>
36 #include "getopt.h" 35 #include "getopt.h"
37 36
37 #ifdef HAVE_SYSEXITS_H
38 # include <sysexits.h>
39 #endif
40
41 #ifndef EX_OK
42 # define EX_OK 0
43 #endif
44 #ifndef EX_UNAVAILABLE
45 # define EX_UNAVAILABLE 1
46 #endif
47 #ifndef EX_TEMPFAIL
48 # define EX_TEMPFAIL 2
49 #endif
50
38 #ifdef HAVE_STRINGS_H 51 #ifdef HAVE_STRINGS_H
39 # include <strings.h> 52 # include <strings.h>
40 #endif 53 #endif
......