summaryrefslogtreecommitdiff
path: root/src/irmd/configfile.c
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2024-07-20 11:14:00 +0200
committerSander Vrijders <[email protected]>2024-07-22 14:08:06 +0200
commita1e455b30e9ed52eddc6d6056bef7fc02b4e251b (patch)
tree0de706ae54fc131aae04296a3c37d3b0f44a9fd5 /src/irmd/configfile.c
parentd0ab4de4422094d300975aff1109a021788b9de1 (diff)
downloadouroboros-a1e455b30e9ed52eddc6d6056bef7fc02b4e251b.tar.gz
ouroboros-a1e455b30e9ed52eddc6d6056bef7fc02b4e251b.zip
irmd: Fix compilation with configfile on FreeBSD
AF_INET is defined in <sys/socket.h> on FreeBSD. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/irmd/configfile.c')
-rw-r--r--src/irmd/configfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irmd/configfile.c b/src/irmd/configfile.c
index 688c4ade..279af80f 100644
--- a/src/irmd/configfile.c
+++ b/src/irmd/configfile.c
@@ -47,6 +47,9 @@
#include <string.h>
#include <toml.h>
#include <arpa/inet.h>
+#ifdef __FreeBSD__
+#include <sys/socket.h>
+#endif
#define ERRBUFSZ 200