diff options
-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> |