From 995e599afd3e6468d3396fb351ed0cd0ea212779 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Wed, 17 Mar 2021 14:33:46 +0000 Subject: Linux and the BSDs have getifaddrs(). Use it and save a bunch of complex coding. --- src/OS/os.h-FreeBSD | 1 + src/OS/os.h-Linux | 1 + src/OS/os.h-OpenBSD | 1 + 3 files changed, 3 insertions(+) (limited to 'src/OS') diff --git a/src/OS/os.h-FreeBSD b/src/OS/os.h-FreeBSD index 0083642b4..4f1358423 100644 --- a/src/OS/os.h-FreeBSD +++ b/src/OS/os.h-FreeBSD @@ -11,6 +11,7 @@ #define HAVE_SETCLASSRESOURCES #define HAVE_MMAP #define HAVE_SYS_MOUNT_H +#define HAVE_GETIFADDR #define SIOCGIFCONF_GIVES_ADDR #define HAVE_SRANDOMDEV #define HAVE_ARC4RANDOM diff --git a/src/OS/os.h-Linux b/src/OS/os.h-Linux index 287e15465..f2c243e9f 100644 --- a/src/OS/os.h-Linux +++ b/src/OS/os.h-Linux @@ -16,6 +16,7 @@ with the issue. */ #define HAVE_MMAP #define HAVE_BSD_GETLOADAVG #define HAVE_SYS_STATVFS_H +#define HAVE_GETIFADDRS #define NO_IP_VAR_H #define SIG_IGN_WORKS diff --git a/src/OS/os.h-OpenBSD b/src/OS/os.h-OpenBSD index 08f2dcaa5..eaa2f6b1d 100644 --- a/src/OS/os.h-OpenBSD +++ b/src/OS/os.h-OpenBSD @@ -6,6 +6,7 @@ #define HAVE_BSD_GETLOADAVG #define HAVE_MMAP #define HAVE_SYS_MOUNT_H +#define HAVE_GETIFADDR #define SIOCGIFCONF_GIVES_ADDR #define EXIM_HAVE_OPENAT #define EXIM_HAVE_FUTIMENS -- cgit v1.2.3