[Package] lcd4linux: update to r1159. Fixes #8897
authorJonathan McCrohan <jmccrohan@gmail.com>
Tue, 27 Sep 2011 23:43:35 +0000 (23:43 +0000)
committerJonathan McCrohan <jmccrohan@gmail.com>
Tue, 27 Sep 2011 23:43:35 +0000 (23:43 +0000)
SVN-Revision: 28313

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

index ba3901d998e19867f65eb009cf25de35e503aa46..be9c5aee9fd2993cd8aa981bc917b158c514a7d0 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), "/?");