summaryrefslogtreecommitdiff
path: root/src/OS
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-03-17 14:33:46 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2021-03-17 14:33:46 +0000
commit995e599afd3e6468d3396fb351ed0cd0ea212779 (patch)
tree159ceee53c1dcd922fb26336c517db74a98d31a1 /src/OS
parent376fa78ab65917689a9eb5d4bcd44ce6e41feb35 (diff)
Linux and the BSDs have getifaddrs(). Use it and save a bunch of complex coding.
Diffstat (limited to 'src/OS')
-rw-r--r--src/OS/os.h-FreeBSD1
-rw-r--r--src/OS/os.h-Linux1
-rw-r--r--src/OS/os.h-OpenBSD1
3 files changed, 3 insertions, 0 deletions
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