Code

Implicit declaration fix
authorBernd Zeimetz <bzed@debian.org>
Mon, 11 Feb 2008 11:00:04 +0000 (12:00 +0100)
committerBernd Zeimetz <bzed@debian.org>
Mon, 11 Feb 2008 11:00:04 +0000 (12:00 +0100)
debian/patches/implicit-decl-fix [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/implicit-decl-fix b/debian/patches/implicit-decl-fix
new file mode 100644 (file)
index 0000000..ebec677
--- /dev/null
@@ -0,0 +1,31 @@
+Index: rrdtool/src/rrd_tool.c
+===================================================================
+--- rrdtool.orig/src/rrd_tool.c        2008-02-11 11:07:55.000000000 +0100
++++ rrdtool/src/rrd_tool.c     2008-02-11 11:08:10.000000000 +0100
+@@ -4,6 +4,8 @@
+  * rrd_tool.c  Startup wrapper
+  *****************************************************************************/
++#include <unistd.h>
++
+ #include "rrd_tool.h"
+ #include "rrd_xport.h"
+Index: rrdtool/src/rrd_update.c
+===================================================================
+--- rrdtool.orig/src/rrd_update.c      2008-02-11 11:47:32.000000000 +0100
++++ rrdtool/src/rrd_update.c   2008-02-11 11:47:48.000000000 +0100
+@@ -430,8 +430,13 @@
+ #ifdef HAVE_MADVISE
+     /* when we use mmaping we tell the kernel the mmap equivalent
+        of POSIX_FADV_RANDOM */
++#ifdef __USE_BSD
+     madvise(rrd_mmaped_file,rrd_filesize,POSIX_MADV_RANDOM);
+ #endif
++#ifdef __USE_XOPEN2K
++    posix_madvise(rrd_mmaped_file,rrd_filesize,POSIX_MADV_RANDOM);
++#endif
++#endif
+ #endif
+     /* loop through the arguments. */
+     for(arg_i=0; arg_i<argc;arg_i++) {
index c99854f19e7e4033c366ace62e099a6e0d070547..8648bacc50840e2dc7e381b7c3f2a0dadcd9f30e 100644 (file)
@@ -1,3 +1,4 @@
 setup.py-module-name
 no-rpath-for-ruby
 no-rpath-for-perl
+implicit-decl-fix