aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/sysconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/sysconf.c')
-rw-r--r--lib/libc/gen/sysconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/sysconf.c b/lib/libc/gen/sysconf.c
index df67581da2ce..2d9c2eda2bd2 100644
--- a/lib/libc/gen/sysconf.c
+++ b/lib/libc/gen/sysconf.c
@@ -176,7 +176,7 @@ sysconf(name)
mib[1] = USER_POSIX2_UPE;
goto yesno;
-#ifdef POSIX4
+#if _POSIX_VERSION >= 199309L
/* POSIX.4 */
case _SC_ASYNCHRONOUS_IO:
@@ -279,7 +279,7 @@ sysconf(name)
mib[0] = CTL_POSIX4;
mib[1] = CTL_POSIX4_TIMER_MAX;
goto yesno;
-#endif /* POSIX4 */
+#endif /* _POSIX_VERSION >= 199309L */
yesno: if (sysctl(mib, 2, &value, &len, NULL, 0) == -1)
return (-1);