]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Define realpath for MinGW builds
authorWolfgang Stöggl <c72578@yahoo.de>
Tue, 15 Jan 2019 09:44:39 +0000 (10:44 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Thu, 17 Jan 2019 17:05:11 +0000 (18:05 +0100)
commit6f2982f7af36fa3ae6198ecf0bb44379cbe812c6
tree3cc50207a0b839a269f8738c564b28be6eefc4e8
parentc8aa7f020ad55e8a251e2baf8e692259eb61ce78
Define realpath for MinGW builds

- Define realpath the same way as in win32/rrd_config.h
- Fixes the following compiler warnings in rrd_client.c:
  115:11: warning: implicit declaration of function 'realpath';
  [-Wimplicit-function-declaration] ret = realpath(path, NULL);
  115:11: warning: nested extern declaration of 'realpath'
  [-Wnested-externs]
  115:9: warning: assignment to 'char *' from 'int' makes pointer from
  integer without a cast [-Wint-conversion] ret = realpath(path, NULL);
  132:22: warning: assignment to 'char *' from 'int' makes pointer from
  integer without a cast [-Wint-conversion]
  dir_path = realpath(dir, NULL);
src/rrd_client.c