This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
There is no _POSIX_REGEX_VERSION, so don't check for it. Instead
check for what actually exists, which is _REGEX_VERSION. I found this
when trying to make the getconf environment variables typo-proof.
* sysdeps/posix/sysconf.c (__sysconf): Check for and return
_REGEX_VERSION and not _POSIX_REGEX_VERSION.
---
sysdeps/posix/sysconf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
index cd2fb5a..644f514 100644
--- a/sysdeps/posix/sysconf.c
+++ b/sysdeps/posix/sysconf.c
@@ -984,8 +984,8 @@ __sysconf (name)
return -1;
#endif
case _SC_REGEX_VERSION:
-#if _POSIX_REGEX_VERSION > 0
- return _POSIX_REGEX_VERSION;
+#ifdef _REGEX_VERSION
+ return _REGEX_VERSION;
#else
return -1;
#endif
--
1.9.3
Attachment:
pgpXFRPgXGKgh.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |