Use *_unlocked version of stdio function if _LIBC_REENTRANT is
authordrepper <drepper>
Tue, 1 Dec 1998 17:56:03 +0000 (17:56 +0000)
committerdrepper <drepper>
Tue, 1 Dec 1998 17:56:03 +0000 (17:56 +0000)
defined, not _LIBC.

intl/localealias.c

index 78a704f..0c35b7a 100644 (file)
@@ -133,11 +133,11 @@ struct block_list
 # define alloca(size) (malloc (size))
 #endif /* have alloca */
 
-#if defined _LIBC || defined HAVE_FGETS_UNLOCKED
+#if defined _LIBC_REENTRANT || defined HAVE_FGETS_UNLOCKED
 # undef fgets
 # define fgets(buf, len, s) fgets_unlocked (buf, len, s)
 #endif
-#if defined _LIBC || defined HAVE_FEOF_UNLOCKED
+#if defined _LIBC_REENTRANT || defined HAVE_FEOF_UNLOCKED
 # undef feof
 # define feof(s) feof_unlocked (s)
 #endif