Commit 1704a7d4 authored by Simon McVittie's avatar Simon McVittie

Modernize checks for non-POSIX getpwnam_r

Part of a patch by Javier Jardón.

Bug: default avatarSimon McVittie <>
parent cc2c19c1
......@@ -587,11 +587,10 @@ if test "$ac_cv_func_posix_getpwnam_r" = yes; then
AC_CACHE_CHECK([for nonposix getpwnam_r],
[AC_TRY_LINK([#include <pwd.h>],
[char buffer[10000];
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pwd.h>]], [[char buffer[10000];
struct passwd pwd;
getpwnam_r ("", &pwd, buffer,
sizeof (buffer));],
sizeof (buffer));]])],
if test "$ac_cv_func_nonposix_getpwnam_r" = yes; then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment