1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

Third attempt to avoid a implicit declaration of function ‘realpath’ error on the remote build server

This commit is contained in:
bel
2015-09-01 23:05:00 +02:00
parent 5cf6afbaeb
commit a65d852a09

View File

@@ -33,12 +33,7 @@
* http://man7.org/linux/man-pages/man3/realpath.3.html
* defining _XOPEN_SOURCE 600 should be enough, but in
* practice this does not work. */
#ifdef __clang__
#pragma clang diagnostic ignored "-Wimplicit-function-declaration"
#endif
#ifdef GCC
#pragma GCC diagnostic ignored "-Wimplicit-function-declaration"
#endif
extern char *realpath(const char *path, char *resolved_path);
#include "../src/main.c"