From: Bernd Zeimetz Date: Mon, 11 Feb 2008 11:00:04 +0000 (+0100) Subject: Implicit declaration fix X-Git-Tag: debian/1.2.26-1~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=538b463d9823d1fe6c06e984632bfa830677cfee;p=pkg-rrdtool.git Implicit declaration fix --- diff --git a/debian/patches/implicit-decl-fix b/debian/patches/implicit-decl-fix new file mode 100644 index 0000000..ebec677 --- /dev/null +++ b/debian/patches/implicit-decl-fix @@ -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 ++ + #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