[PATCH] Fix implicit declaration in rrd_open.c
Milan Holzäpfel <[email protected]>
| Newsgroups | gmane.comp.db.rrdtool.devel |
|---|---|
| Organization | mjh.name |
| Message-ID | <[email protected]> |
Hi, attached patch fixes an implicit declaration of utime() in src/rrd_open.c in case utime() is needed. The inclusion of utime.h depends on HAVE_BROKEN_MS_ASYNC, which is defined in rrd_config.h, included by src/rrd_tool.h. Therefore, rrd_tool.h must be included before the check for HAVE_BROKEN_MS_ASYNC. Gentoo's build utils made me notice the compiler warning. I'm not subscribed to the list. Regards, Milan Holzäpfel _______________________________________________ rrd-developers mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
rrdtool-1.4.3-fix-implicit-declaration.patch
(application/octet-stream, 371 B)
--- rrdtool-1.4.3/src/rrd_open.c.orig 2010-03-26 23:18:54.819828364 +0100 +++ rrdtool-1.4.3/src/rrd_open.c 2010-03-26 23:22:27.193726591 +0100 @@ -12,12 +12,13 @@ #include <sys/stat.h> #endif +#include "rrd_tool.h" + #ifdef HAVE_BROKEN_MS_ASYNC #include <sys/types.h> #include <utime.h> #endif -#include "rrd_tool.h" #include "unused.h" #define MEMBLK 8192