summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Engel <t-openbsc@tobias.org>2012-10-24 17:52:51 +0200
committerHarald Welte <laforge@gnumonks.org>2012-10-27 10:03:11 +0200
commit2db368ee8d440312dd0a7481e9b9e30d2921096c (patch)
tree62767a0d77a18156eb47b8de3639c1d69263b76b
parent8ec7f901bb1843b7c29335d5ea0531e7a1527210 (diff)
Define struct iphdr for OSX
Use FreeBSD struct iphdr definition for OSX also. From the commentary in the source file: On BSD the IPv4 struct is called struct ip and instead of iXX the members are called ip_XX. One could change this code to use struct ip but that would require to define _BSD_SOURCE and that might have other complications. Instead make sure struct iphdr is present on FreeBSD.
-rw-r--r--src/gb/gprs_ns_frgre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/gprs_ns_frgre.c b/src/gb/gprs_ns_frgre.c
index 23443812..e557c7e8 100644
--- a/src/gb/gprs_ns_frgre.c
+++ b/src/gb/gprs_ns_frgre.c
@@ -48,7 +48,7 @@ struct gre_hdr {
uint16_t ptype;
} __attribute__ ((packed));
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__APPLE__)
/**
* On BSD the IPv4 struct is called struct ip and instead of iXX
* the members are called ip_XX. One could change this code to use