diff --git a/src/Makefile b/src/Makefile index c3410ed..864e4c5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -33,10 +33,11 @@ CFILES := $(shell ls *.c) OFILES := $(patsubst %.c,%.o,$(CFILES)) DESTFILE=libnazgul.a +INCLUDES=-I /usr/lib/ -I /usr/local/lib/ DEFINES:= ifeq "SunOS" "${OS}" -DEFINES:=-D_NZG_REALFILEID +DEFINES:=-D_NZG_REALFILEID -D_NZG_SUNOS endif ifeq "HP-UX" "${OS}" diff --git a/test/create_delete.c b/test/create_delete.c index 071e3e6..431102d 100644 --- a/test/create_delete.c +++ b/test/create_delete.c @@ -9,6 +9,7 @@ int main(void) { // msgSpace mS=0; + pid_t pid; msgSpaceId testId; msgSpace * mSPAC; msgPool poolInfos[3]; @@ -32,7 +33,7 @@ int main(void) { exit(0); } - pid_t pid=fork(); + pid=fork();