naccyde / rpms / iproute

Forked from rpms/iproute 10 months ago
Clone

Blame SOURCES/0046-tc-include-stdint.h-explicitly-for-UINT16_MAX.patch

36cfb7
From 7a77e4df94a48c35f9a4bf1fc3f8e9d1f72a77b7 Mon Sep 17 00:00:00 2001
36cfb7
From: Phil Sutter <psutter@redhat.com>
36cfb7
Date: Wed, 6 Feb 2019 14:50:24 +0100
36cfb7
Subject: [PATCH] tc: include stdint.h explicitly for UINT16_MAX
36cfb7
36cfb7
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1641909
36cfb7
Upstream Status: iproute2.git commit ae717baf15fb4
36cfb7
36cfb7
commit ae717baf15fb4d30749ada3948d9445892bac239
36cfb7
Author: Khem Raj <raj.khem@gmail.com>
36cfb7
Date:   Sat May 20 14:28:46 2017 -0700
36cfb7
36cfb7
    tc: include stdint.h explicitly for UINT16_MAX
36cfb7
36cfb7
    Fixes
36cfb7
    | tc_core.c:190:29: error: 'UINT16_MAX' undeclared (first use in this function); did you mean '__INT16_MAX__'?
36cfb7
    |    if ((sz >> s->size_log) > UINT16_MAX) {
36cfb7
    |                              ^~~~~~~~~~
36cfb7
36cfb7
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
36cfb7
---
36cfb7
 tc/tc_core.c | 1 +
36cfb7
 1 file changed, 1 insertion(+)
36cfb7
36cfb7
diff --git a/tc/tc_core.c b/tc/tc_core.c
e138d9
index 7bbe0d733fc75..821b741be17cf 100644
36cfb7
--- a/tc/tc_core.c
36cfb7
+++ b/tc/tc_core.c
36cfb7
@@ -12,6 +12,7 @@
36cfb7
 
36cfb7
 #include <stdio.h>
36cfb7
 #include <stdlib.h>
36cfb7
+#include <stdint.h>
36cfb7
 #include <unistd.h>
36cfb7
 #include <syslog.h>
36cfb7
 #include <fcntl.h>
36cfb7
-- 
e138d9
2.21.0
36cfb7