Skip to content
Snippets Groups Projects
Commit 231ad3ed authored by deuce's avatar deuce
Browse files

NetBSD still needs xp_sem.h to beuild some stuff... prevents:

gcc -O3 -MMD -D__unix__ -I/usr/pkg/include -I/usr/pkg/pthreads/include -DNEEDS_FORKPTY -D__unix__  -DJAVASCRIPT -I../../include/mozilla/js  -I../uifc -I../xpdev -I../smblib -I../conio  -o gcc.netbsd.obj.release/sbbsecho.o -c sbbsecho.c
In file included from ../xpdev/threadwrap.h:108,
                 from startup.h:47,
                 from scfgdefs.h:43,
                 from ars_defs.h:52,
                 from sbbs.h:115,
                 from sbbsecho.c:63:
../xpdev/semwrap.h:65: parse error before `*'
In file included from scfgdefs.h:43,
                 from ars_defs.h:52,
                 from sbbs.h:115,
                 from sbbsecho.c:63:
startup.h:91: parse error before `sem_t'
startup.h:91: warning: no semicolon at end of struct or union
startup.h:105: `seteuid' redeclared as different kind of symbol
/usr/include/unistd.h:333: previous declaration of `seteuid'
startup.h:106: `setuid' redeclared as different kind of symbol
/usr/include/unistd.h:141: previous declaration of `setuid'
startup.h:120: parse error before `recycle_sem'
startup.h:120: warning: data definition has no type or storage class
startup.h:123: parse error before `}'
startup.h:123: warning: data definition has no type or storage class

This is almost guaranteed to be the wrong way to fix this.
parent bcb8aed1
Branches
Tags
No related merge requests found
...@@ -246,7 +246,7 @@ else ...@@ -246,7 +246,7 @@ else
XP_SEM := 1 XP_SEM := 1
else else
ifeq ($(os),netbsd) # NetBSD ifeq ($(os),netbsd) # NetBSD
CFLAGS += -D__unix__ CFLAGS += -D__unix__ -DUSE_XP_SEMAPHORES
MT_CFLAGS += -DUSE_XP_SEMAPHORES MT_CFLAGS += -DUSE_XP_SEMAPHORES
MT_LDFLAGS += -L/usr/pkg/lib -L/usr/pkg/pthreads/lib -lpthread MT_LDFLAGS += -L/usr/pkg/lib -L/usr/pkg/pthreads/lib -lpthread
XP_SEM := 1 XP_SEM := 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment