diff options
author | venaas <venaas> | 2007-02-09 12:21:44 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-02-09 12:21:44 +0000 |
commit | 7972697f22f2aac4d0364261282a5d43c0385dc3 (patch) | |
tree | e3f2331702a23dc8151cc84ea4fa5e6952a27b98 | |
parent | be427ded4ed91db215eb2af31ff41a3b989c61ac (diff) |
changes to build on NetBSD
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@54 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | radsecproxy.c | 3 | ||||
-rw-r--r-- | util.c | 2 |
3 files changed, 9 insertions, 3 deletions
@@ -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 diff --git a/radsecproxy.c b/radsecproxy.c index 85fb401..e4634bf 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -35,7 +35,10 @@ * 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> @@ -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> |