Selaa lähdekoodia

add freebsd target

Charlie Root 7 vuotta sitten
vanhempi
sitoutus
f736d78ec2
2 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 1 0
      common.h
  2. 4 0
      makefile

+ 1 - 0
common.h

@@ -43,6 +43,7 @@ typedef int socklen_t;
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include <arpa/inet.h>
+#include <netinet/in.h>
 #endif
 
 

+ 4 - 0
makefile

@@ -19,6 +19,10 @@ all:git_version
 	rm -f ${NAME}
 	${cc_local}   -o ${NAME}          -I. ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3 
 
+freebsd:git_version
+	rm -f ${NAME}
+	${cc_local}   -o ${NAME}          -I. ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3 
+
 cygwin:git_version
 	rm -f ${NAME}
 	${cc_local}   -o ${NAME}          -I. ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3 -D_GNU_SOURCE