summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 2671280..1a92bff 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -80,6 +80,7 @@ _FORTIFY_FN(reallocarray) void* reallocarray(void* __p, size_t __n, size_t __s)
80#if (defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)) && !defined(__clang__) 80#if (defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)) && !defined(__clang__)
81#undef realpath 81#undef realpath
82__diagnose_as_builtin(__builtin_realpath, 1, 2) 82__diagnose_as_builtin(__builtin_realpath, 1, 2)
83__warning_if(__p == NULL, "'realpath' called with path set to `NULL`; did you invert the arguments?")
83_FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r) 84_FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r)
84{ 85{
85#ifndef PATH_MAX 86#ifndef PATH_MAX