diff options
Diffstat (limited to '')
| -rw-r--r-- | include/stdlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 38015d4..aeed102 100644 --- a/include/stdlib.h +++ b/include/stdlib.h | |||
| @@ -39,6 +39,7 @@ extern "C" { | |||
| 39 | /* FIXME clang */ | 39 | /* FIXME clang */ |
| 40 | #if (defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)) && !defined(__clang__) | 40 | #if (defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)) && !defined(__clang__) |
| 41 | #undef realpath | 41 | #undef realpath |
| 42 | __warning_if(__p == NULL, "'realpath' called with path set to `NULL`; did you invert the arguments?") | ||
| 42 | _FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r) | 43 | _FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r) |
| 43 | { | 44 | { |
| 44 | #ifndef PATH_MAX | 45 | #ifndef PATH_MAX |
