* Makefile.in, configure.in: add, like, some *more* code for FreeBSD
authorNathan Bryant <loanshark@uncensored.citadel.org>
Fri, 11 Feb 2000 23:45:04 +0000 (23:45 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Fri, 11 Feb 2000 23:45:04 +0000 (23:45 +0000)
* tcp_sockets.c: include <arpa/inet.h>

webcit/ChangeLog
webcit/Makefile.in
webcit/configure.in
webcit/tcp_sockets.c

index 1de4e31eed7befe9e9876ed09ee90dde95039473..63eec9c656f3651987e5e55214c5b70cc0b36fd0 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 211.3  2000/02/11 23:45:04  nbryant
+* Makefile.in, configure.in: add, like, some *more* code for FreeBSD
+* tcp_sockets.c: include <arpa/inet.h>
+
 Revision 211.2  2000/02/11 23:30:04  nbryant
 configure.in: added some code for FreeBSD
 
@@ -378,3 +382,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 2cd30c9a65e29de4f8ea9bbe2f367389dcb01e82..7bd92c894db16d1a6eb5da781bc308dbf528a22a 100644 (file)
@@ -6,6 +6,7 @@ CFLAGS=@CFLAGS@
 DEFS=@DEFS@
 LIBOBJS=@LIBOBJS@
 LIBS=@LIBS@
+PTHREAD_DEFS=@PTHREAD_DEFS@
 srcdir=@srcdir@
 
 # End of configuration section
@@ -34,7 +35,7 @@ webserver: webserver.o context_loop.o tools.o \
        $(LIBOBJS) $(LIBS) -o webserver
 
 .c.o:
-       $(CC) $(CFLAGS) $(DEFS) -c -D_REENTRANT -DWEBCITDIR=\"`pwd`\" $<
+       $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) -DWEBCITDIR=\"`pwd`\" $<
 
 Makefile: $(srcdir)/Makefile.in config.status
        CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
index d0ce46ca47206ad41d866e2c236a75891addf8cd..f9cd9f1a9a5364de6897d18ddee5f9a024d72d47 100644 (file)
@@ -6,6 +6,7 @@ AC_CANONICAL_HOST
 
 dnl Set some system-specific variables which are OK to set before compiler
 dnl checks:
+PTHREAD_DEFS=-D_REENTRANT
 case "$host" in
        dnl Tru64 Unix requires we use -pthread instead of linking the threads
        dnl libraries directly, and we can't build threaded programs with gcc
@@ -17,8 +18,10 @@ case "$host" in
        dnl FreeBSD is similar:
        *-*-freebsd*)
                LIBS=-pthread
+               PTHREAD_DEFS=-D_THREAD_SAFE
        ;;
 esac
+AC_SUBST(PTHREAD_DEFS)
 
 dnl Checks for programs.
 AC_PROG_CC
index 8aa0508674d4873e325be5de6e06e08477452cde..45de6d70f522b6a59f8aef4268e955d0072ab556 100644 (file)
@@ -19,6 +19,7 @@
 #include <sys/time.h>
 #include <limits.h>
 #include <netinet/in.h>
+#include <arpa/inet.h>
 #include <netdb.h>
 #include <string.h>
 #include <pwd.h>