This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #121431] Add support for test.valgrind parallel testing.
[perl5.git] / reentr.c
index a5ea192..917807c 100644 (file)
--- a/reentr.c
+++ b/reentr.c
@@ -431,8 +431,10 @@ Perl_reentrant_retry(const char *f, ...)
                    uid = va_arg(ap, Uid_t);
 #endif
                    retptr = getpwuid(uid); break;
+#if defined(HAS_GETPWENT) || defined(HAS_GETPWENT_R)
                case OP_GPWENT:
                    retptr = getpwent(); break;
+#endif
                default:
                    SETERRNO(ERANGE, LIB_INVARG);
                    break;