diff -u src/Makefile src.mod/Makefile --- src/Makefile Tue Nov 18 15:02:28 2003 +++ src.mod/Makefile Wed Nov 26 10:48:24 2003 @@ -1,9 +1,9 @@ BIN = mathopd CC = gcc -CFLAGS = -O -Wall +CFLAGS = -O2 -Wall CPPFLAGS = LDFLAGS = -LIBS = -lcrypt +LIBS = -lc PREFIX = /usr/local SBINDIR = $(PREFIX)/sbin @@ -19,14 +19,14 @@ DEPENDS = mathopd.h Makefile # Uncomment the following if your system does not support the poll() function -# CPPFLAGS += -DPOLL_EMULATION -# OBJS += poll-emul.o +CPPFLAGS += -DPOLL_EMULATION +OBJS += poll-emul.o # Uncomment the following if your system does not have the socklen_t type -# CPPFLAGS += -DNEED_SOCKLEN_T +CPPFLAGS += -DNEED_SOCKLEN_T # Unomment the following if your system has a working vfork() function -# CPPFLAGS += -DHAVE_VFORK +CPPFLAGS += -DHAVE_VFORK all: $(BIN) install: $(BIN) diff -u src/poll-emul.h src.mod/poll-emul.h --- src/poll-emul.h Thu Nov 29 10:01:51 2001 +++ src.mod/poll-emul.h Wed Nov 26 10:48:13 2003 @@ -46,6 +46,7 @@ #define POLLIN 1 #define POLLOUT 4 +#define POLLERR 8 #define INFTIM -1 #endif diff -u src/stub.c src.mod/stub.c --- src/stub.c Thu Nov 20 15:03:54 2003 +++ src.mod/stub.c Wed Nov 26 10:46:15 2003 @@ -44,7 +44,11 @@ #include #include #include +#ifndef POLL_EMULATION #include +#else +#include "poll-emul.h" +#endif #include #include #include