home *** CD-ROM | disk | FTP | other *** search
- Well, here it is. This is a patch against 6.0a/930731. Hope it works
- for you as well. I've included my Makefile in the diffs (just in case)
- BTW, I'm running Linux 0.99p11, gcc 2.4.5 with libc 4.4.1
-
- === diffs ===
- diff -ru2 930731/src/Makefile Server/src/Makefile
- --- 930731/src/Makefile Sun Aug 8 12:32:11 1993
- +++ Server/src/Makefile Sun Aug 1 22:26:35 1993
- @@ -122,12 +122,13 @@
-
- # define your compiler:
- -CC = cc
- +CC = gcc
-
- # define special symbols (system, preprocessor options, etc):
- -DEFINES = -DHAVE_SELECT_H -DHAVE_ULIMIT_H -DHAVE_SETJMP_H \
- - -DHAVE_TZFILE_H
- +DEFINES = -DHAVE_ULIMIT_H -DHAVE_SETJMP_H \
- + -DDONT_GO_INTERACTIVE -DZMAILER \
- + -DUCB_MAIL=\"/usr/bin/mailx\"
-
- # define linking options and libraries
- - LDFLAGS = $(OPTIMIZATION)
- + LDFLAGS = -s $(OPTIMIZATION)
-
- diff -ru2 930731/src/defs.h Server/src/defs.h
- +++ Server/src/defs.h Sun Aug 1 22:39:47 1993
- + int optopt;
-
- diff -ru2 930731/src/signals.c Server/src/signals.c
- --- 930731/src/signals.c Sun Aug 8 12:32:37 1993
- +++ Server/src/signals.c Sun Aug 1 17:25:19 1993
- @@ -83,5 +83,7 @@
- signals[SIGQUIT] = "SIGQUIT";
- signals[SIGTERM] = "SIGTERM";
- +#ifdef SIGBUS
- signals[SIGBUS] = "SIGBUS";
- +#endif
- signals[SIGSEGV] = "SIGSEGV";
- signals[SIGKILL] = "SIGKILL";
- @@ -112,5 +114,7 @@
- signal (SIGTERM, my_abort);
- signal (SIGSEGV, my_abort);
- +#ifdef SIGBUS
- signal (SIGBUS, my_abort);
- +#endif
- signal (SIGKILL, my_abort); /* Can't be caught, but why not try? */
- #ifdef _AIX
- @@ -144,5 +148,9 @@
- syscom ("echo '' | %s -s '%s received %s' %s &", UCB_MAIL,
- (prog ? prog : "???"), signals[sig], sys.manager);
- +#ifdef SIGBUS
- if (sig == SIGQUIT || sig == SIGILL || sig == SIGSEGV || sig == SIGBUS) {
- +#else
- + if (sig == SIGQUIT || sig == SIGILL || sig == SIGSEGV) {
- +#endif
- #ifdef GO_INTERACTIVE
- union semun {
-
- diff -ru2 930731/systest Server/systest
- --- 930731/systest Sun Aug 8 12:32:54 1993
- +++ Server/systest Sun Aug 1 16:59:42 1993
- @@ -385,4 +385,11 @@
- echo Missing utilities you have to have: $have_to_have
- fi
- +#find -follow not supported on all platforms
- +find /usr/include -follow -print >/dev/null 2>&1
- +if [ $? -eq 0 ]; then
- + follow="-follow"
- +else
- + follow=""
- +fi
- echo
-
- @@ -392,5 +399,5 @@
- else
- file=`(cd /usr/include;\
- - find . -name select.h -print 2>/dev/null)` #find -follow not supported on all platforms
- + find . $follow -name select.h -print 2>/dev/null)`
- if [ "$file" = "" ]; then
- echo '*** Do NOT compile with the -DHAVE_SELECT_H flag'
- @@ -410,5 +417,5 @@
- else
- file=`(cd /usr/include;\
- - find . -name ulimit.h -print 2>/dev/null)`
- + find . $follow -name ulimit.h -print 2>/dev/null)`
- if [ "$file" = "" ]; then
- echo '*** Do NOT compile with the -DHAVE_ULIMIT_H flag'
- @@ -423,5 +430,5 @@
- else
- file=`(cd /usr/include;\
- - find . -name setjmp.h -print 2>/dev/null)`
- + find . $follow -name setjmp.h -print 2>/dev/null)`
- if [ "$file" = "" ]; then
- echo '*** Do NOT compile with the -DHAVE_SETJMP_H flag'
- @@ -436,5 +443,5 @@
- else
- file=`(cd /usr/include;\
- - find . -name tzfile.h -print 2>/dev/null)`
- + find . $follow -name tzfile.h -print 2>/dev/null)`
- if [ "$file" = "" ]; then
- echo '*** Do NOT compile with the -DHAVE_TZFILE_H flag'
- @@ -442,5 +449,5 @@
- file=`echo $file | awk '{ print $1 }'`
- echo '*** Compile with -DHAVE_TZFILE_H'
- - echo \*\*\* Compile with -I/usr/server`dirnam $file | sed 's/\.//g'`
- + echo \*\*\* Compile with -I/usr/include`dirnam $file | sed 's/\.//g'`
- fi
- fi
- @@ -449,5 +456,5 @@
- else
- file=`(cd /usr/include;\
- - find . -name syslog.h -print 2>/dev/null)`
- + find . $follow -name syslog.h -print 2>/dev/null)`
- if [ "$file" != "" ]; then
- file=`echo $file | awk '{ print $1 }'`
- @@ -501,11 +508,12 @@
- echo --- Looking for specific header files:
-
- -grep SIGCLD /usr/include/sys/signal.h > /dev/null 2>&1
- +file=`find /usr/include $follow -name signal.h -print 2>/dev/null`
- +grep SIGCLD $file > /dev/null 2>&1
- sigcld1=$?
- -grep SIGCHLD /usr/include/sys/signal.h > /dev/null 2>&1
- +grep SIGCHLD $file > /dev/null 2>&1
- sigcld2=$?
- -grep SIGUSR1 /usr/include/sys/signal.h > /dev/null 2>&1
- +grep SIGUSR1 $file > /dev/null 2>&1
- sigusr1=$?
- -grep SIGUSR2 /usr/include/sys/signal.h > /dev/null 2>&1
- +grep SIGUSR2 $file > /dev/null 2>&1
- sigusr2=$?
- if [ $sigcld1 -ne 0 -o $sigcld2 -ne 0 -o $sigusr1 -ne 0 -o $sigusr2 -ne 0 ]; then
- @@ -523,5 +531,5 @@
- else
- file=`(cd /usr/include;\
- - find . -name wait.h -print 2>/dev/null)`
- + find . $follow -name wait.h -print 2>/dev/null)`
- if [ "$file" = "" ]; then
- echo '*** Remove #include <sys/wait.h> from all source files'
- @@ -547,5 +555,5 @@
- if [ ! -f /usr/include/sys/sem.h ]; then
- file=`(cd /usr/include;\
- - find . -name sem.h -print 2>/dev/null)`
- + find . $follow -name sem.h -print 2>/dev/null)`
- if [ "$file" = "" ]; then
- go_interactive=no${known_port:-'; no semaphore support; compile with -DDONT_GO_INTERACTIVE'}
- @@ -562,5 +570,5 @@
- if [ ! -f /usr/include/netdb.h ]; then
- file=`(cd /usr/include;\
- - find . -name netdb.h -print 2>/dev/null)`
- + find . $follow -name netdb.h -print 2>/dev/null)`
- if [ "$file" = "" ]; then
- echo '*** Remove #include <netdb.h> from all source files'
- @@ -572,10 +580,10 @@
- if [ ! -f /usr/include/sys/socket.h ]; then
- file=`(cd /usr/include;\
- - find . -name socket.h -print 2>/dev/null)`
- + find . $follow -name socket.h -print 2>/dev/null)`
- if [ "$file" = "" ]; then
- tcp_ip=no${known_port:-'; compile with -DNO_TCP_IP; the system mailmethod may not be used'}
- else
- file=`echo $file | awk '{ print $1 }'`
- - echo \*\*\* Compile with -I/usr/server`dirnam $file | sed 's/\.//g' |\
- + echo \*\*\* Compile with -I/usr/include`dirnam $file | sed 's/\.//g' |\
- sed 's/\/sys//g'`
- echo $file | grep 'sys/socket.h' > /dev/null 2>&1
- @@ -863,5 +871,5 @@
- echo yes
- else
- - for i in `(cd /usr/include; find . -print 2>/dev/null)`; do
- + for i in `(cd /usr/include; find . $follow -print 2>/dev/null)`; do
- grep O_NDELAY /usr/include/$i > /dev/null 2>&1
- if [ $? -eq 0 ]; then
- @@ -896,5 +904,5 @@
- echo yes${known_port:-'; make sure NO_LOCKS is NOT defined in src/defs.h'}
- else
- - for i in `(cd /usr/include; find . -print 2>/dev/null)`; do
- + for i in `(cd /usr/include; find . $follow -print 2>/dev/null)`; do
- grep F_TLOCK /usr/include/$i > /dev/null 2>&1
- if [ $? -eq 0 ]; then
- === diffs ===
-
- Cheers,
- -- pi
-
-