Make it compile on Linux again
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Sun, 7 Feb 2016 20:05:46 +0000 (21:05 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Sun, 7 Feb 2016 20:05:49 +0000 (21:05 +0100)
Makefile
main.c

index ef5d393f75fa7cecee3f42968d9536daf862a5a7..15328c161f8bb6a683dc0798ef95d310a82d78de 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ nmrp.o: nmrp.c nmrpd.h
 tftp.o: tftp.c nmrpd.h
        $(CC) $(CFLAGS) -c -o tftp.o tftp.c
 
-ethsock.o: ethsock.c ethsock.h
+ethsock.o: ethsock.c nmrpd.h
        $(CC) $(CFLAGS) -c -o ethsock.o ethsock.c
 
 main.o: main.c nmrpd.h
diff --git a/main.c b/main.c
index 83e791c7ecb280b1fc56960a290712c263e74a48..1ee2986f09cef1c2c92dd74adffd0eee6f3473b8 100644 (file)
--- a/main.c
+++ b/main.c
@@ -17,6 +17,7 @@
  *
  */
 
+#include <unistd.h>
 #include <getopt.h>
 #include <stdlib.h>
 #include <stdio.h>