FTBFS with gcc7
Bug #1735158 reported by
Andreas Hasenack
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iproute2 (Ubuntu) |
Fix Released
|
Undecided
|
Andreas Hasenack | ||
Artful |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
tc
CC tc_core.o
tc_core.c: In function ‘tc_calc_
tc_core.c:190:29: error: ‘UINT16_MAX’ undeclared (first use in this function); did you mean ‘__INT16_MAX__’?
if ((sz >> s->size_log) > UINT16_MAX) {
tc_core.c:190:29: note: each undeclared identifier is reported only once for each function it appears in
../Config:40: recipe for target 'tc_core.o' failed
make[3]: *** [tc_core.o] Error 1
To post a comment you must log in.
commit ae717baf15fb4d3 0749ada3948d944 5892bac239
Author: Khem Raj <email address hidden>
Date: Sat May 20 14:28:46 2017 -0700
tc: include stdint.h explicitly for UINT16_MAX
Fixes
| tc_core.c:190:29: error: 'UINT16_MAX' undeclared (first use in this function); did you mean '__INT16_MAX__'?
| if ((sz >> s->size_log) > UINT16_MAX) {
| ^~~~~~~~~~
Signed-off-by: Khem Raj <email address hidden>
diff --git a/tc/tc_core.c b/tc/tc_core.c
index 7bbe0d73..821b741b 100644
--- a/tc/tc_core.c
+++ b/tc/tc_core.c
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <unistd.h>
#include <syslog.h>
#include <fcntl.h>