Code

debian/patches/implicit-decl-fix:
[pkg-rrdtool.git] / debian / patches / implicit-decl-fix
index ebec677954988a4b6744350791d4848a30e6c2fe..cffa4a8dac1eb832d2b3c6f44effa759431e5aaa 100644 (file)
@@ -1,7 +1,7 @@
 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
+--- rrdtool.orig/src/rrd_tool.c        2008-04-20 02:11:52.000000000 +0200
++++ rrdtool/src/rrd_tool.c     2008-04-20 02:11:58.000000000 +0200
 @@ -4,6 +4,8 @@
   * rrd_tool.c  Startup wrapper
   *****************************************************************************/
@@ -13,19 +13,16 @@ Index: rrdtool/src/rrd_tool.c
  
 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
+--- rrdtool.orig/src/rrd_update.c      2008-04-20 02:11:52.000000000 +0200
++++ rrdtool/src/rrd_update.c   2008-04-22 15:38:38.000000000 +0200
+@@ -22,6 +22,10 @@
+ #include "rrd_is_thread_safe.h"
+ #include "unused.h"
++#ifdef USE_MADVISE
++ #include <sys/mman.h>
 +#endif
- #endif
-     /* loop through the arguments. */
-     for(arg_i=0; arg_i<argc;arg_i++) {
++
+ #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
+ /*
+  * WIN32 does not have gettimeofday   and struct timeval. This is a quick and dirty