summaryrefslogtreecommitdiff
path: root/PACE
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-16 23:18:31 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-16 23:18:31 +0000
commitef78feb54556cf60f5926ca74b98900f616a4d4b (patch)
treed61962168a6029233ce6a27a3fa56ab2f4aa8672 /PACE
parent2abb753eea700055f51802592775006c9897a47b (diff)
downloadATCD-ef78feb54556cf60f5926ca74b98900f616a4d4b.tar.gz
ChangeLogTag:Mon Apr 16 16:17:35 2001 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'PACE')
-rw-r--r--PACE/ChangeLog7
-rw-r--r--PACE/include/makeinclude/rules.common.GNU5
-rw-r--r--PACE/pace/config/platform.h7
-rw-r--r--PACE/pace/posix/socket.h2
4 files changed, 20 insertions, 1 deletions
diff --git a/PACE/ChangeLog b/PACE/ChangeLog
index da979c42484..8320f60a4e5 100644
--- a/PACE/ChangeLog
+++ b/PACE/ChangeLog
@@ -1,3 +1,10 @@
+Mon Apr 16 16:17:35 2001 Carlos O'Ryan <coryan@uci.edu>
+
+ * pace/posix/socket.h:
+ * pace/config/platform.h:
+ * include/makeinclude/rules.common.GNU:
+ Add support for QNX, it behaves like other POSIX platforms.
+
Wed Mar 21 09:26:38 2001 Joe Hoffert <joeh@cs.wustl.edu>
* pace/posix/socket.h:
diff --git a/PACE/include/makeinclude/rules.common.GNU b/PACE/include/makeinclude/rules.common.GNU
index ebcdc1a2712..49b89db279e 100644
--- a/PACE/include/makeinclude/rules.common.GNU
+++ b/PACE/include/makeinclude/rules.common.GNU
@@ -99,6 +99,11 @@ ifeq ($(PACE_SYSNAME),HP-UX)
CFLAGS += -DPACE_HAS_POSIX -D_REENTRANT
endif
+ifeq ($(PACE_SYSNAME),QNX)
+ VPATH := .:posix:$(VPATH)
+ CFLAGS += -DPACE_QNX=$(PACE_SYSVER) -D_REENTRANT
+endif
+
ifeq ($(debug),)
ifeq (,$(findstring $(CFLAGS),$(CCFLAGS)))
CCFLAGS += -DPACE_NDEBUG
diff --git a/PACE/pace/config/platform.h b/PACE/pace/config/platform.h
index 1c9d406338d..333e845197e 100644
--- a/PACE/pace/config/platform.h
+++ b/PACE/pace/config/platform.h
@@ -46,6 +46,13 @@
# define PACE_LYNXOS 0
# define PACE_VXWORKS 0
# define PACE_WIN32 0
+#elif defined (PACE_QNX)
+# define PACE_HAS_POSIX PACE_QNX
+# define PACE_LINUX 0
+# define PACE_SUNOS 0
+# define PACE_LYNXOS 0
+# define PACE_VXWORKS 0
+# define PACE_WIN32 0
/* These platforms are NOT POSIX compliant. */
diff --git a/PACE/pace/posix/socket.h b/PACE/pace/posix/socket.h
index 61e96e7f341..187230d776a 100644
--- a/PACE/pace/posix/socket.h
+++ b/PACE/pace/posix/socket.h
@@ -35,7 +35,7 @@ extern "C" {
#ifndef PACE_SOCKLEN_T
#define PACE_SOCKLEN_T
-# if PACE_LYNXOS == 0x300 || PACE_LYNXOS == 0x310 || PACE_SUNOS == 551 || PACE_SUNOS == 560
+# if PACE_LYNXOS == 0x300 || PACE_LYNXOS == 0x310 || PACE_SUNOS == 551 || PACE_SUNOS == 560 || PACE_QNX == 600
typedef int pace_socklen_t;
# else
typedef socklen_t pace_socklen_t;