summaryrefslogtreecommitdiffstats
path: root/runtime/net.c
diff options
context:
space:
mode:
authorMartin Carpenter <mcarpenter@free.fr>2012-11-29 15:44:32 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-01-09 13:02:03 +0100
commit19ee18602fee6e7163f6110a92023e5e2d0c7d79 (patch)
tree745f578cc252edd7a3231898b8303083914fb992 /runtime/net.c
parente9fbf1880befd5a841accefca41b69f684f73c34 (diff)
downloadrsyslog-19ee18602fee6e7163f6110a92023e5e2d0c7d79.tar.gz
rsyslog-19ee18602fee6e7163f6110a92023e5e2d0c7d79.tar.bz2
rsyslog-19ee18602fee6e7163f6110a92023e5e2d0c7d79.zip
Use compatibility library if getifaddrs(3) not available
Diffstat (limited to 'runtime/net.c')
-rw-r--r--runtime/net.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/net.c b/runtime/net.c
index dcf9cb52..5d5e5eb7 100644
--- a/runtime/net.c
+++ b/runtime/net.c
@@ -54,7 +54,11 @@
#include <fnmatch.h>
#include <fcntl.h>
#include <unistd.h>
+#if HAVE_GETIFADDR
#include <ifaddrs.h>
+#else
+#include "compat/ifaddrs.h"
+#endif /* HAVE_GETIFADDR */
#include <sys/types.h>
#include <arpa/inet.h>