Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From 79bea58a554205dd185509fbc4e76b5fc40f9038 Mon Sep 17 00:00:00 2001 |
| 2 | From: Joe MacDonald <joe_macdonald@mentor.com> |
| 3 | Date: Tue, 15 Nov 2016 12:36:45 -0500 |
| 4 | Subject: [PATCH] fw_context: add include for NI_MAXHOST definiton |
| 5 | |
| 6 | This appears to build successfully with gcc 4.x but fails on gcc 5+, though it's |
| 7 | not immediately clear why NI_MAXHOST isn't being defined from the include |
| 8 | chain. Currently engaging with the upstream devs to determine the best course |
| 9 | of action, but this is an adequate workaround. |
| 10 | |
| 11 | Upstream-status: Pending |
| 12 | |
| 13 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> |
| 14 | --- |
| 15 | include/fw_context.h | 4 + |
| 16 | 1 file changed, 1 insertion(+) |
| 17 | |
| 18 | diff --git a/include/fw_context.h b/include/fw_context.h |
| 19 | index 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 | -- |
| 34 | 2.1.4 |
| 35 | |