#
-# Copyright (C) 2010-2016 OpenWrt.org
+# Copyright (C) 2010-2017 OpenWrt.org
# Copyright (C) 2010 Alfred E. Heggestad
#
# This is free software, licensed under the GNU General Public License v2.
include $(TOPDIR)/rules.mk
PKG_NAME:=re
-PKG_VERSION:=0.4.17
+PKG_VERSION:=0.5.5
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.creytiv.com/pub
-PKG_MD5SUM:=5900337fd8c77515c87eae5bf0f8c091
+PKG_HASH:=90917a173de962d3b20ab5f9875ad3051b7b307da4acb80c184b72e6c2ba7bb4
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=docs/COPYING
--- /dev/null
+--- a/src/dns/res.c
++++ b/src/dns/res.c
+@@ -25,7 +25,7 @@ int get_resolv_dns(char *domain, size_t
+ uint32_t i;
+ int ret, err;
+
+-#ifdef OPENBSD
++#if defined(OPENBSD) || defined(OPENWRT)
+ ret = res_init();
+ state = _res;
+ #else
+@@ -56,7 +56,7 @@ int get_resolv_dns(char *domain, size_t
+ *n = i;
+
+ out:
+-#ifdef OPENBSD
++#if defined(OPENBSD) || defined(OPENWRT)
+ #else
+ res_nclose(&state);
+ #endif