aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/qnx4.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port/qnx4.h')
-rw-r--r--src/include/port/qnx4.h31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/include/port/qnx4.h b/src/include/port/qnx4.h
index 820f26180da..d60555f1047 100644
--- a/src/include/port/qnx4.h
+++ b/src/include/port/qnx4.h
@@ -1,12 +1,12 @@
-#include <sys/types.h> /* for namser.h */
-#include <arpa/nameser.h> /* for BYTE_ORDER */
-#include <process.h> /* for execv */
-#include <ioctl.h> /* for unix.h */
-#include <termios.h> /* for unix.h */
+#include <sys/types.h> /* for namser.h */
+#include <arpa/nameser.h> /* for BYTE_ORDER */
+#include <process.h> /* for execv */
+#include <ioctl.h> /* for unix.h */
+#include <termios.h> /* for unix.h */
#include <unix.h>
-#include <sys/select.h> /* for select */
+#include <sys/select.h> /* for select */
#if !defined(__GNUC__)
-#include <semaphore.h> /* for sem_t */
+#include <semaphore.h> /* for sem_t */
#endif
#define USE_POSIX_TIME
@@ -17,23 +17,26 @@
#define strncasecmp strnicmp
-#ifndef NAN
-#ifndef __nan_bytes
-#define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f }
-#endif /* __nan_bytes */
+#ifndef NAN
+#ifndef __nan_bytes
+#define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f }
+#endif /* __nan_bytes */
extern unsigned char __nan[8];
-#define NAN (*(const double *) __nan)
-#endif /* NAN */
+
+#define NAN (*(const double *) __nan)
+#endif /* NAN */
typedef u_short ushort;
#if defined(__GNUC__)
typedef unsigned char slock_t;
+
#else
typedef sem_t slock_t;
+
#endif
-extern int isnan(double dsrc);
+extern int isnan(double dsrc);
extern double rint(double x);