Hi,

There are QNX4 patches for hubbub, libparserutils and libwapcaplet.

-- 
Respectfully,
Oleg Bolshakov,
diff -rNu hubbub/Makefile hubbub.qnx4/Makefile
--- hubbub/Makefile	2010-03-04 19:35:37.069536230 +0300
+++ hubbub.qnx4/Makefile	2010-02-19 21:14:28.000000000 +0300
@@ -17,10 +17,17 @@
 ifneq ($(TARGET),beos)
   WARNFLAGS := $(WARNFLAGS) -Werror
 endif
+ifeq ($(TARGET),qnx4)
+  WARNFLAGS := -w9
+endif
 CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
 	-I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
 ifneq ($(GCCVER),2)
-  CFLAGS := $(CFLAGS) -std=c99
+  ifneq ($(TARGET),qnx4)
+    CFLAGS := $(CFLAGS) -std=c99
+  else
+    CFLAGS := $(CFLAGS) -za99 -Dstrncasecmp="strcasencmp"
+  endif
 else
   # __inline__ is a GCCism
   CFLAGS := $(CFLAGS) -Dinline="__inline__"
diff -rNu hubbub/src/charset/detect.c hubbub.qnx4/src/charset/detect.c
--- hubbub/src/charset/detect.c	2010-03-04 19:35:36.835786035 +0300
+++ hubbub.qnx4/src/charset/detect.c	2010-03-04 19:37:13.242520934 +0300
@@ -9,6 +9,10 @@
 #include <stdbool.h>
 #include <string.h>
 
+#ifdef QNX4
+#include <unix.h>
+#endif
+
 #include <parserutils/charset/mibenum.h>
 
 #include <hubbub/types.h>
diff -rNu hubbub/src/treebuilder/treebuilder.c hubbub.qnx4/src/treebuilder/treebuilder.c
--- hubbub/src/treebuilder/treebuilder.c	2010-03-04 19:35:36.717520083 +0300
+++ hubbub.qnx4/src/treebuilder/treebuilder.c	2010-02-19 21:25:02.000000000 +0300
@@ -10,6 +10,10 @@
 
 #include <stdio.h>
 
+#ifdef QNX4
+#include <unix.h>
+#endif
+
 #include "treebuilder/modes.h"
 #include "treebuilder/internal.h"
 #include "treebuilder/treebuilder.h"
diff -rNu libparserutils/Makefile libparserutils.qnx4/Makefile
--- libparserutils/Makefile	2010-03-04 19:28:41.899521356 +0300
+++ libparserutils.qnx4/Makefile	2010-02-19 20:52:20.000000000 +0300
@@ -17,11 +17,18 @@
 ifneq ($(TARGET),beos)
   WARNFLAGS := $(WARNFLAGS) -Werror
 endif
+ifeq ($(TARGET),qnx4)
+  WARNFLAGS := -w9
+endif
 
 CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
 	-I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
 ifneq ($(GCCVER),2)
-  CFLAGS := $(CFLAGS) -std=c99
+  ifneq ($(TARGET),qnx4)
+    CFLAGS := $(CFLAGS) -std=c99
+  else
+    CFLAGS := $(CFLAGS) -za99
+  endif
 else
   # __inline__ is a GCCism
   CFLAGS := $(CFLAGS) -Dinline="__inline__"
diff -rNu libwapcaplet/Makefile libwapcaplet.qnx4/Makefile
--- libwapcaplet/Makefile	2010-03-04 19:33:00.464522035 +0300
+++ libwapcaplet.qnx4/Makefile	2010-02-19 23:15:13.000000000 +0300
@@ -18,10 +18,17 @@
 ifneq ($(TARGET),beos)
   WARNFLAGS := $(WARNFLAGS) -Werror
 endif
+ifeq ($(TARGET),qnx4)
+  WARNFLAGS := -w9
+endif
 CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
 	-I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
 ifneq ($(GCCVER),2)
-  CFLAGS := $(CFLAGS) -std=c99
+  ifneq ($(TARGET),qnx4)
+    CFLAGS := $(CFLAGS) -std=c99
+  else
+    CFLAGS := $(CFLAGS) -za99 -Dstrncasecmp="strcasencmp"
+  endif
 else
   # __inline__ is a GCCism
   CFLAGS := $(CFLAGS) -Dinline="__inline__"

Reply via email to