Ticket #207 (closed defect: fixed)
missing #include for utime() in rrd_open.c
| Reported by: | human | Owned by: | oetiker |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | misc | Version: | 1.3.8 |
| Keywords: | Cc: | vincent@… |
Description
In RRDtool 1.3.6, when both HAVE_MMAP and HAVE_BROKEN_MS_ASYNC are defined (e.g. under Mac OS X Tiger), the utime() function is called in rrd_open.c, but its prototype is not declared:
rrd_open.c: In function 'rrd_open': rrd_open.c:167: warning: implicit declaration of function 'utime' rrd_open.c:167: warning: nested extern declaration of 'utime'
To avoid this problem, a
#include <utime.h>
is needed.
Change History
comment:2 Changed 3 years ago by human
- Status changed from closed to reopened
- Resolution fixed deleted
When building on Win32 (VS2008) from source: rrdtool-1.3.8.tar.gz 19-May-2009 15:47 1.0M
Error 86 fatal error C1083: Cannot open include file: 'utime.h': No such file or directory c:\rrdtool-sdk\rrdtool-1.3.8\src\rrd_open.c 16 rrdlib



thanks ... fix is in r1738.