Re: [PATCH 2/2] utime.h not included despite HAVE_BROKEN_MS_ASYNC

Tobias Oetiker <[email protected]>
Newsgroups gmane.comp.db.rrdtool.devel
Message-ID <[email protected]>
Hi Antoine,

Yesterday Antoine MUSSO wrote:

> HAVE_BROKEN_MS_ASYNC is set/unset by the configure script and saved in
> ../rrd_config.h wich is included by rrd_tool.h.
>
> The ifdef statement is made before including rrd_tool.h thus is never
> used and utime.h is never included when it should.
> ---
>   src/rrd_open.c |    3 ++-
>   1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/src/rrd_open.c b/src/rrd_open.c
> index 9f4f6e2..9279c70 100644
> --- a/src/rrd_open.c
> +++ b/src/rrd_open.c
> @@ -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

thanks
tobi
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.