]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2120] no sysexits.h under QNX
authorHarlan Stenn <stenn@ntp.org>
Wed, 14 Nov 2012 09:35:24 +0000 (01:35 -0800)
committerHarlan Stenn <stenn@ntp.org>
Wed, 14 Nov 2012 09:35:24 +0000 (01:35 -0800)
bk: 50a365dcWGDpd7Y-PqsFaG6SOGulnA

ChangeLog
sntp/configure.ac
sntp/m4/ntp_sysexits.m4 [new file with mode: 0644]

index 85a5f0fc3a198c84385a6c057a15ca9a595707de..187a0619f02bc1ee30ef26f041fab36aea0f9391 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 * [Bug 1223] Allow configurable values for RLIMIT_STACK and
   RLIMIT_MEMLOCK.
 * [Bug 1320] Log ntpd's initial command-line parameters. (updated fix)
+* [Bug 2120] no sysexits.h under QNX.
 (4.2.7p321) 2012/11/13 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 1320] Log ntpd's initial command-line parameters.
 (4.2.7p320) 2012/11/12 Released by Harlan Stenn <stenn@ntp.org>
index 348a4fdb97c51d3ddb731a4843aea13cbfec4295..afc885c5a741602480af8496fd0814326f236bad 100644 (file)
@@ -110,6 +110,7 @@ AC_SEARCH_LIBS([openlog], [gen syslog])
 
 # Checks for header files.
 AC_CHECK_HEADERS([netdb.h string.h strings.h syslog.h])
+NTP_SYSEXITS_H
 NTP_FACILITYNAMES
 
 # Checks for typedefs, structures, and compiler characteristics.
diff --git a/sntp/m4/ntp_sysexits.m4 b/sntp/m4/ntp_sysexits.m4
new file mode 100644 (file)
index 0000000..48a529d
--- /dev/null
@@ -0,0 +1,11 @@
+dnl ######################################################################
+dnl sysexits.h
+AC_DEFUN([NTP_SYSEXITS_H], [
+
+AC_CHECK_HEADERS([sysexits.h], [],[
+AC_DEFINE([EX_OK], [0], [successful termination])
+AC_DEFINE([EX_SOFTWARE], [70], [internal software error])
+])dnl
+
+])dnl
+dnl ======================================================================