Assume strerror(3) exists

ISO C99 requires strerror(3).

Link: <https://github.com/shadow-maint/shadow/pull/600>
Cc: Christian Göttsche <cgzones@googlemail.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar 2022-12-02 17:23:03 +01:00 committed by Iker Pedrosa
parent 5e8df2b2b5
commit 3a32f5278d
2 changed files with 1 additions and 2 deletions

View File

@ -102,7 +102,7 @@ AC_TYPE_GETGROUPS
AC_FUNC_UTIME_NULL
AC_REPLACE_FUNCS(mkdir putgrent putpwent putspent rename rmdir)
AC_REPLACE_FUNCS(sgetgrent sgetpwent sgetspent)
AC_REPLACE_FUNCS(snprintf strcasecmp strdup strerror strstr)
AC_REPLACE_FUNCS(snprintf strcasecmp strdup strstr)
AC_CHECK_FUNC(setpgrp)
AC_CHECK_FUNC(secure_getenv, [AC_DEFINE(HAS_SECURE_GETENV,

View File

@ -250,7 +250,6 @@ static inline void memzero(void *ptr, size_t size)
#ifdef sun /* hacks for compiling on SunOS */
# ifndef SOLARIS
extern char *strdup ();
extern char *strerror ();
# endif
#endif