[Package] lcd4linux: update to r1159. Fixes #8897
authorjmccrohan <jmccrohan@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 27 Sep 2011 23:43:35 +0000 (23:43 +0000)
committerjmccrohan <jmccrohan@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 27 Sep 2011 23:43:35 +0000 (23:43 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28313 3c298f89-4303-0410-b956-a3cf2f4a3e73

utils/lcd4linux/Makefile
utils/lcd4linux/patches/110-uclibc-logarithm-fix.patch [new file with mode: 0644]

index ba3901d..be9c5ae 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lcd4linux
-PKG_REV:=1158
+PKG_REV:=1159
 PKG_VERSION:=r$(PKG_REV)
 PKG_RELEASE:=1
 
diff --git a/utils/lcd4linux/patches/110-uclibc-logarithm-fix.patch b/utils/lcd4linux/patches/110-uclibc-logarithm-fix.patch
new file mode 100644 (file)
index 0000000..9deba8c
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/plugin_netinfo.c
++++ b/plugin_netinfo.c
+@@ -264,7 +264,7 @@
+     sin = get_netmask(arg1);
+     if (NULL != sin) {
+       logval = (long double) (get_netmask(arg1)->sin_addr.s_addr);
+-      netlen = (int) rint(log2l(logval) / log2l(2.0));
++      netlen = (int) rint(log2f(logval) / log2f(2.0));
+       qprintf(value, sizeof(value), "/%d", netlen);
+     } else {
+       qprintf(value, sizeof(value), "/?");