[sr-dev] git:master:57106763: ipops: fix compilation under FreeBSD
Rick Barenthin
rb at terralink.de
Fri Sep 23 08:47:01 CEST 2016
Module: kamailio
Branch: master
Commit: 5710676321c145d83904d919960ae7a12bd148d9
URL: https://github.com/kamailio/kamailio/commit/5710676321c145d83904d919960ae7a12bd148d9
Author: Rick Barenthin <rb at terralink.de>
Committer: Rick Barenthin <rb at terralink.de>
Date: 2016-09-22T21:19:11+02:00
ipops: fix compilation under FreeBSD
- unable to compile detailed_ip_type.c under FreeBSD needs extra header
---
Modified: modules/ipops/detailed_ip_type.c
---
Diff: https://github.com/kamailio/kamailio/commit/5710676321c145d83904d919960ae7a12bd148d9.diff
Patch: https://github.com/kamailio/kamailio/commit/5710676321c145d83904d919960ae7a12bd148d9.patch
---
diff --git a/modules/ipops/detailed_ip_type.c b/modules/ipops/detailed_ip_type.c
index 3e3854d..aeff77c 100644
--- a/modules/ipops/detailed_ip_type.c
+++ b/modules/ipops/detailed_ip_type.c
@@ -26,6 +26,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <arpa/inet.h>
+#if defined (__OS_freebsd)
+#include <sys/socket.h>
+#endif
#include <string.h>
#include <unistd.h>
#include "../../dprint.h"
More information about the sr-dev
mailing list