]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: include stdint.h explicitly for UINT16_MAX
authorKhem Raj <raj.khem@gmail.com>
Sat, 20 May 2017 21:28:46 +0000 (14:28 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 22 May 2017 18:41:53 +0000 (11:41 -0700)
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 <raj.khem@gmail.com>
tc/tc_core.c

index 7bbe0d733fc759d03ce29dca890ab999498e6fd9..821b741be17cf90d61eb6c50d29ffe407de6054c 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <unistd.h>
 #include <syslog.h>
 #include <fcntl.h>