aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/xtables-addons/patches/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
commit3b798d819da47737262acb78738f048dae31bc30 (patch)
treef51257bed8f852fca3541cc2468eab930998f896 /package/network/utils/xtables-addons/patches/300-geoip-endian-detection.patch
parent576aa2af0c217c5497cc61bce80331bcd824f735 (diff)
downloadupstream-3b798d819da47737262acb78738f048dae31bc30.tar.gz
upstream-3b798d819da47737262acb78738f048dae31bc30.tar.bz2
upstream-3b798d819da47737262acb78738f048dae31bc30.zip
xtables-addons: move to package/, add myself as maintainer
SVN-Revision: 35193
Diffstat (limited to 'package/network/utils/xtables-addons/patches/300-geoip-endian-detection.patch')
-rw-r--r--package/network/utils/xtables-addons/patches/300-geoip-endian-detection.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/network/utils/xtables-addons/patches/300-geoip-endian-detection.patch b/package/network/utils/xtables-addons/patches/300-geoip-endian-detection.patch
new file mode 100644
index 0000000000..842e7afcc7
--- /dev/null
+++ b/package/network/utils/xtables-addons/patches/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);