1From dc2f54097da3cd493b8f4d06a14ef40be484d24f Mon Sep 17 00:00:00 2001 2From: Sergio Prado <sergio.prado@e-labworks.com> 3Date: Thu, 21 Feb 2019 15:02:08 -0300 4Subject: [PATCH] Fix compile error when building against uclibc or musl 5 6The build fails when dereferencing the rpcent structure with uclibc or musl C libraries. 7 8../../../src/dynamic-preprocessors/appid/service_plugins/service_rpc.c:241:20: 9error: dereferencing pointer to incomplete type ‘struct rpcent’ 10 if (rpc->r_name) 11 12That's because rpc.h should be included when using these C libraries. 13 14Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com> 15--- 16 src/dynamic-preprocessors/appid/service_plugins/service_rpc.c | 2 +- 17 1 file changed, 1 insertion(+), 1 deletion(-) 18 19diff --git a/src/dynamic-preprocessors/appid/service_plugins/service_rpc.c b/src/dynamic-preprocessors/appid/service_plugins/service_rpc.c 20index 81bc8a5db8ab..2e45246083a8 100644 21--- a/src/dynamic-preprocessors/appid/service_plugins/service_rpc.c 22+++ b/src/dynamic-preprocessors/appid/service_plugins/service_rpc.c 23@@ -32,7 +32,7 @@ 24 #include "flow.h" 25 #include "service_api.h" 26 27-#if defined(FREEBSD) || defined(OPENBSD) 28+#if defined(FREEBSD) || defined(OPENBSD) || (defined(LINUX) && defined(__UCLIBC__) && !defined(__UCLIBC_HAS_RPC__) || !defined(__GLIBC__)) 29 #include "rpc/rpc.h" 30 #endif 31 32-- 332.7.4 34 35