blob: 37d695f49d6e0da6295a953a7f8ca8d8c8b8e577 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From 79bea58a554205dd185509fbc4e76b5fc40f9038 Mon Sep 17 00:00:00 2001
2From: Joe MacDonald <joe_macdonald@mentor.com>
3Date: Tue, 15 Nov 2016 12:36:45 -0500
4Subject: [PATCH] fw_context: add include for NI_MAXHOST definiton
5
6This appears to build successfully with gcc 4.x but fails on gcc 5+, though it's
7not immediately clear why NI_MAXHOST isn't being defined from the include
8chain. Currently engaging with the upstream devs to determine the best course
9of action, but this is an adequate workaround.
10
11Upstream-status: Pending
12
13Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
14---
15 include/fw_context.h | 4 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/include/fw_context.h b/include/fw_context.h
19index 44053d8..0b05cea 100644
20--- a/include/fw_context.h
21+++ b/include/fw_context.h
22@@ -21,6 +21,10 @@
23 #ifndef FWPARAM_CONTEXT_H_
24 #define FWPARAM_CONTEXT_H_
25
26+#include <sys/socket.h>
27+#ifndef NI_MAXHOST
28+#define NI_MAXHOST 1025
29+#endif
30 #include <netdb.h>
31 #include <net/if.h>
32
33--
342.1.4
35