Code

Merge branch 'upstream'
[pkg-rrdtool.git] / debian / patches / implicit-decl-fix
1 Index: rrdtool/src/rrd_tool.c
2 ===================================================================
3 --- rrdtool.orig/src/rrd_tool.c 2008-04-20 02:11:52.000000000 +0200
4 +++ rrdtool/src/rrd_tool.c      2008-04-20 02:11:58.000000000 +0200
5 @@ -4,6 +4,8 @@
6   * rrd_tool.c  Startup wrapper
7   *****************************************************************************/
8  
9 +#include <unistd.h>
10 +
11  #include "rrd_tool.h"
12  #include "rrd_xport.h"
13  
14 Index: rrdtool/src/rrd_update.c
15 ===================================================================
16 --- rrdtool.orig/src/rrd_update.c       2008-04-20 02:11:52.000000000 +0200
17 +++ rrdtool/src/rrd_update.c    2008-04-22 15:38:38.000000000 +0200
18 @@ -22,6 +22,10 @@
19  #include "rrd_is_thread_safe.h"
20  #include "unused.h"
21  
22 +#ifdef USE_MADVISE
23 + #include <sys/mman.h>
24 +#endif
25 +
26  #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
27  /*
28   * WIN32 does not have gettimeofday    and struct timeval. This is a quick and dirty