From 378ae342c4e2e6b5bafbe54067d35344746be41b Mon Sep 17 00:00:00 2001 From: Gary Lockyer Date: Thu, 1 Jun 2017 13:26:38 +1200 Subject: strerror_r: provide XSI-compliant strerror_r Provide a XSI-compliant strerror_r on GNU based systems. The default GNU strerror_r is not XSI-compliant, this patch wraps the GNU-specific call in an XSI-compliant wrapper. This reverts 18ed32ce0821d11c0c06d82c07ba1c27b0c2b886 which tried to make Heimdal use roken, rather than libreplace for strerror_r. Signed-off-by: Gary Lockyer Signed-off-by: Andrew Bartlett Reviewed-by: Jeremy Allison --- source4/heimdal_build/wscript_configure | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source4/heimdal_build/wscript_configure') diff --git a/source4/heimdal_build/wscript_configure b/source4/heimdal_build/wscript_configure index 67ac34b45b2..354d44fbf36 100644 --- a/source4/heimdal_build/wscript_configure +++ b/source4/heimdal_build/wscript_configure @@ -28,13 +28,6 @@ conf.CHECK_FUNCS('''atexit cgetent getprogname setprogname gethostname strptime strsep strsep_copy strtok_r strupr swab umask uname unsetenv closefrom err warn errx warnx flock writev''') -if conf.CHECK_FUNCS('strerror_r'): - # Check if strerror_r is BSD compatible (default GNU implementation is not what Heimdal expects) - conf.CHECK_CODE('int strerror_r(int errnum, char *buf, size_t buflen);', - 'STRERROR_R_PROTO_COMPATIBLE', - headers='string.h', addmain=False, link=False, - msg="Checking for XSI (rather than GNU) prototype for strerror_r") - conf.CHECK_FUNCS_IN('hstrerror', 'resolv socket nsl', checklibc=True) conf.CHECK_FUNCS_IN('''getnameinfo sendmsg socket getipnodebyname gethostent gethostent_r sethostent endhostent getipnodebyaddr freehostent gethostbyname -- cgit v1.2.1