[packages] rrdtool, rrdtool-1.0.x: backport upstream commit r2069
Explicitely cast float cookie value to double, fixes erroneous "RRD was created on another architecture" errors on x86. Patches provided by Thomas Heil <heil@terminal-consulting.de> git-svn-id: svn://svn.openwrt.org/openwrt/packages@29874 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
13
libs/rrdtool-1.0.x/patches/020-x86-float-cast.patch
Normal file
13
libs/rrdtool-1.0.x/patches/020-x86-float-cast.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: rrdtool-1.0.50/src/rrd_format.h
|
||||
===================================================================
|
||||
--- rrdtool-1.0.50.orig/src/rrd_format.h
|
||||
+++ rrdtool-1.0.50/src/rrd_format.h
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#define RRD_COOKIE "RRD"
|
||||
#define RRD_VERSION "0001"
|
||||
-#define FLOAT_COOKIE 8.642135E130
|
||||
+#define FLOAT_COOKIE ((double)8.642135E130)
|
||||
|
||||
#if defined(WIN32)
|
||||
#define DNAN ((double)fmod(0.0,0.0))
|
Reference in New Issue
Block a user