summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2013-12-26 03:25:00 +0800
committerLAN-TW <lantw44@gmail.com>2013-12-26 03:25:00 +0800
commit5eb50033f551db6e9733228f8fef7427b10a7ec8 (patch)
treeea63835182b495671f647a20553a51397ca28cb6
parente3486d95bc4bd00a582f340b6c89d3ad43902e5f (diff)
downloadcn2013-5eb50033f551db6e9733228f8fef7427b10a7ec8.tar.gz
cn2013-5eb50033f551db6e9733228f8fef7427b10a7ec8.tar.zst
cn2013-5eb50033f551db6e9733228f8fef7427b10a7ec8.zip
HW2: 修正 FreeBSD 上編譯失敗的問題
-rw-r--r--hw2/Makefile.am2
-rw-r--r--hw2/ump-gai.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/hw2/Makefile.am b/hw2/Makefile.am
index c719a3f..d4292d8 100644
--- a/hw2/Makefile.am
+++ b/hw2/Makefile.am
@@ -1,6 +1,6 @@
NULL =
-EXTRA_DIST = autogen.sh
+EXTRA_DIST = autogen.sh README.txt report.pdf
bin_PROGRAMS = ump-agent ump-trans
noinst_LIBRARIES = liblbs.a libump.a
diff --git a/hw2/ump-gai.h b/hw2/ump-gai.h
index 104a981..3b9cd6e 100644
--- a/hw2/ump-gai.h
+++ b/hw2/ump-gai.h
@@ -6,6 +6,7 @@
#include "l4logger.h"
#include <netdb.h>
+#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>