summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-02 19:26:04 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-02 19:26:04 +0100
commit42906e847dace215e834185b1bcb9aa7c909a478 (patch)
treea77bbe0cf5b1d9678da203e39749c6a9226ad13b /hurd
parent8ff9bb21ce8a19b9512d274704d3025f0a5eced9 (diff)
Fix posix version that introduced realpath(NULL)
Diffstat (limited to 'hurd')
-rw-r--r--hurd/porting/guidelines.mdwn4
1 files changed, 2 insertions, 2 deletions
diff --git a/hurd/porting/guidelines.mdwn b/hurd/porting/guidelines.mdwn
index d132f516..21c33488 100644
--- a/hurd/porting/guidelines.mdwn
+++ b/hurd/porting/guidelines.mdwn
@@ -142,10 +142,10 @@ for a potential corresponding `PATH_MAX` macro. They are not a replacement for
Note 2: Yes, some POSIX functions such as `realpath()` actually assume that
`PATH_MAX` is defined. This is a bug of the POSIX standard, which got fixed in
-POSIX 2001, in which one can simply pass `NULL` to get a dynamically
+POSIX 2008, in which one can simply pass `NULL` to get a dynamically
allocated buffer. One can thus use:
- #if _POSIX_VERSION >= 200112 || defined(__GLIBC__)
+ #if _POSIX_VERSION >= 200809 || defined(__GLIBC__)
char *path = realpath(orig, NULL);
#else
char path[PATH_MATH];