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