aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/xtables-addons/patches-1.x/300-geoip-endian-detection.patch
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-01-17 12:29:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-01-17 12:29:26 +0000
commitdc2e5bd9443d2e53102306825819010bdf8db23c (patch)
tree4d81bdbc60cf0d69b782d3916a9ec059457be31c /package/network/utils/xtables-addons/patches-1.x/300-geoip-endian-detection.patch
parent812eea0ebe52987a137306eff4e971dd39f3a7a6 (diff)
downloadupstream-dc2e5bd9443d2e53102306825819010bdf8db23c.tar.gz
upstream-dc2e5bd9443d2e53102306825819010bdf8db23c.tar.bz2
upstream-dc2e5bd9443d2e53102306825819010bdf8db23c.zip
xtables-addons: move to package/, add myself as maintainer
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35193 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils/xtables-addons/patches-1.x/300-geoip-endian-detection.patch')
-rw-r--r--package/network/utils/xtables-addons/patches-1.x/300-geoip-endian-detection.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/network/utils/xtables-addons/patches-1.x/300-geoip-endian-detection.patch b/package/network/utils/xtables-addons/patches-1.x/300-geoip-endian-detection.patch
new file mode 100644
index 0000000000..842e7afcc7
--- /dev/null
+++ b/package/network/utils/xtables-addons/patches-1.x/300-geoip-endian-detection.patch
@@ -0,0 +1,18 @@
+--- a/extensions/libxt_geoip.c
++++ b/extensions/libxt_geoip.c
+@@ -59,13 +59,13 @@ geoip_get_subnets(const char *code, uint
+
+ /* Use simple integer vector files */
+ if (nfproto == NFPROTO_IPV6) {
+-#if __BYTE_ORDER == _BIG_ENDIAN
++#if BYTE_ORDER == BIG_ENDIAN
+ snprintf(buf, sizeof(buf), GEOIP_DB_DIR "/BE/%s.iv6", code);
+ #else
+ snprintf(buf, sizeof(buf), GEOIP_DB_DIR "/LE/%s.iv6", code);
+ #endif
+ } else {
+-#if __BYTE_ORDER == _BIG_ENDIAN
++#if BYTE_ORDER == BIG_ENDIAN
+ snprintf(buf, sizeof(buf), GEOIP_DB_DIR "/BE/%s.iv4", code);
+ #else
+ snprintf(buf, sizeof(buf), GEOIP_DB_DIR "/LE/%s.iv4", code);