mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
on Solaris, [v][sf][n]printf doesn't like NULL; on Solaris 10 strerror_r apparently returns NULL in some cases (ITS#4285)
This commit is contained in:
parent
d1bc820b2f
commit
a9348a1b88
@ -106,14 +106,14 @@ void * memrchr(const void *b, int c, size_t len);
|
||||
#if defined( HAVE_NONPOSIX_STRERROR_R )
|
||||
# define AC_STRERROR_R(e,b,l) (strerror_r((e), (b), (l)))
|
||||
#elif defined( HAVE_STRERROR_R )
|
||||
# define AC_STRERROR_R(e,b,l) (strerror_r((e), (b), (l)) ? (b) : NULL)
|
||||
# define AC_STRERROR_R(e,b,l) (strerror_r((e), (b), (l)) ? (b) : "")
|
||||
#elif defined( HAVE_SYS_ERRLIST )
|
||||
# define AC_STRERROR_R(e,b,l) ((e) > -1 && (e) < sys_nerr \
|
||||
? sys_errlist[(e)] : NULL )
|
||||
? sys_errlist[(e)] : "" )
|
||||
#elif defined( HAVE_STRERROR )
|
||||
# define AC_STRERROR_R(e,b,l) (strerror(e))
|
||||
#else
|
||||
# define AC_STRERROR_R(e,b,l) (NULL)
|
||||
# define AC_STRERROR_R(e,b,l) ("")
|
||||
#endif
|
||||
|
||||
#endif /* _AC_STRING_H */
|
||||
|
Loading…
Reference in New Issue
Block a user