summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshemminger <shemminger>2005-07-05 22:11:37 +0000
committershemminger <shemminger>2005-07-05 22:11:37 +0000
commit52d5ac3fcb616d3e1979fb91c12213aa2a5bf75e (patch)
tree275dadb6ea70c7f8376649579a750edf99704ba8
parentc515871c8a72950cc5ff08d250ba7209ab95b581 (diff)
Fix build issues
-rw-r--r--ChangeLog4
-rw-r--r--Makefile9
-rw-r--r--misc/ss.c3
-rw-r--r--tc/Makefile2
4 files changed, 15 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ab4f7a1b..0d457a70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-07-05 Thomas Graf <tgraf@suug.ch>
+
+ * Build check for GNU Bison
+
2005-06-23 Jamal Hadi Salim <hadi@znyx.com>
* Fix for options process with ipt
diff --git a/Makefile b/Makefile
index ac58cd97..6b1edafd 100644
--- a/Makefile
+++ b/Makefile
@@ -31,10 +31,17 @@ SUBDIRS=lib ip tc misc netem
LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
-all: Config
+all: flex_check Config
@for i in $(SUBDIRS); \
do $(MAKE) $(MFLAGS) -C $$i; done
+flex_check:
+ @if [ -z "`flex -h | grep '^Usage: flex '`" ]; then \
+ echo "GNU flex required, please install it."; \
+ echo " see http://lex.sourceforge.net"; \
+ exit 1; \
+ fi
+
Config:
sh configure $(KERNEL_INCLUDE)
diff --git a/misc/ss.c b/misc/ss.c
index 549bcc3b..67fe6278 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -1338,6 +1338,7 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct tcpdiagmsg *r)
if (info->tcpi_options & TCPI_OPT_ECN)
printf(" ecn");
}
+
if (tb[TCPDIAG_CONG])
printf("%s", (char *) RTA_DATA(tb[TCPDIAG_CONG]));
@@ -1355,7 +1356,7 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct tcpdiagmsg *r)
printf(" cwnd:%d", info->tcpi_snd_cwnd);
if (info->tcpi_snd_ssthresh < 0xFFFF)
printf(" ssthresh:%d", info->tcpi_snd_ssthresh);
-
+
rtt = (double) info->tcpi_rtt;
if (tb[TCPDIAG_VEGASINFO]) {
const struct tcpvegas_info *vinfo
diff --git a/tc/Makefile b/tc/Makefile
index 5da97b6f..9d618ffc 100644
--- a/tc/Makefile
+++ b/tc/Makefile
@@ -86,4 +86,4 @@ q_atm.so: q_atm.c
$(YACC) $(YACCFLAGS) -o $@ $<
%.lex.c: %.l
- $(LEX) $(LEXFLAGS) -o $@ $<
+ $(LEX) $(LEXFLAGS) -o$@ $<