changes to build on NetBSD
authorvenaas <venaas>
Fri, 9 Feb 2007 12:21:44 +0000 (12:21 +0000)
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Fri, 9 Feb 2007 12:21:44 +0000 (12:21 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@54 e88ac4ed-0b26-0410-9574-a7f39faa03bf

Makefile
radsecproxy.c
util.c

index a7982bd..b288dd2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
 CFLAGS = -g -Wall -pthread
 LDFLAGS = -lssl
+OBJ = util.o
 
 all: radsecproxy
 
-radsecproxy: util.o
-
+radsecproxy: $(OBJ)
+       $(CC) $(CFLAGS) $(OBJ) $(LDFLAGS) -o radsecproxy radsecproxy.c
 clean:
-       rm -f util.o radsecproxy
+       rm -f $(OBJ) radsecproxy
index 85fb401..e4634bf 100644 (file)
  *          1 + (2 + 2 * 3) + (2 * 30) + (2 * 30) = 129 threads
 */
 
+#include <sys/socket.h>
+#include <netinet/in.h>
 #include <netdb.h>
+#include <string.h>
 #include <unistd.h>
 #include <sys/time.h>
 #include <libgen.h>
diff --git a/util.c b/util.c
index e4372a3..3c48e71 100644 (file)
--- a/util.c
+++ b/util.c
@@ -6,6 +6,8 @@
  * copyright notice and this permission notice appear in all copies.
  */
 
+#include <sys/socket.h>
+#include <netinet/in.h>
 #include <netdb.h>
 #include <stdio.h>
 #include <stdlib.h>