|
@ -1,5 +1,5 @@ |
|
|
--- a/lib/crypto/wscript_configure 2018-07-26
|
|
|
|
|
|
+++ b/lib/crypto/wscript_configure 2018-08-27
|
|
|
|
|
|
|
|
|
--- a/lib/crypto/wscript_configure
|
|
|
|
|
|
+++ b/lib/crypto/wscript_configure
|
|
|
@@ -2,11 +2,11 @@
|
|
|
@@ -2,11 +2,11 @@
|
|
|
import Options |
|
|
import Options |
|
|
import Utils |
|
|
import Utils |
|
@ -19,12 +19,17 @@ |
|
|
checklibc=True) |
|
|
checklibc=True) |
|
|
--- a/lib/replace/wscript
|
|
|
--- a/lib/replace/wscript
|
|
|
+++ b/lib/replace/wscript
|
|
|
+++ b/lib/replace/wscript
|
|
|
@@ -302,22 +302,13 @@ def configure(conf):
|
|
|
|
|
|
|
|
|
@@ -340,22 +340,13 @@ def configure(conf):
|
|
|
|
|
|
|
|
|
conf.CHECK_FUNCS('prctl dirname basename') |
|
|
conf.CHECK_FUNCS('prctl dirname basename') |
|
|
|
|
|
|
|
|
- strlcpy_in_bsd = False
|
|
|
- strlcpy_in_bsd = False
|
|
|
-
|
|
|
|
|
|
|
|
|
+ # Not checking for libbsd
|
|
|
|
|
|
+ conf.CHECK_FUNCS('strlcpy strlcat')
|
|
|
|
|
|
+ conf.CHECK_FUNCS('getpeereid')
|
|
|
|
|
|
+ conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h')
|
|
|
|
|
|
+ conf.CHECK_FUNCS('setproctitle_init')
|
|
|
|
|
|
|
|
|
- # libbsd on some platforms provides strlcpy and strlcat
|
|
|
- # libbsd on some platforms provides strlcpy and strlcat
|
|
|
- if not conf.CHECK_FUNCS('strlcpy strlcat'):
|
|
|
- if not conf.CHECK_FUNCS('strlcpy strlcat'):
|
|
|
- if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
|
|
|
- if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
|
|
@ -39,17 +44,11 @@ |
|
|
-
|
|
|
-
|
|
|
- if not conf.CHECK_FUNCS('closefrom'):
|
|
|
- if not conf.CHECK_FUNCS('closefrom'):
|
|
|
- conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h')
|
|
|
- conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h')
|
|
|
+ # Not checking for libbsd
|
|
|
|
|
|
+ conf.CHECK_FUNCS('strlcpy strlcat')
|
|
|
|
|
|
+ conf.CHECK_FUNCS('getpeereid')
|
|
|
|
|
|
+ conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h')
|
|
|
|
|
|
+ conf.CHECK_FUNCS('setproctitle_init')
|
|
|
|
|
|
+
|
|
|
|
|
|
+ conf.CHECK_FUNCS('closefrom')
|
|
|
+ conf.CHECK_FUNCS('closefrom')
|
|
|
|
|
|
|
|
|
conf.CHECK_CODE(''' |
|
|
conf.CHECK_CODE(''' |
|
|
struct ucred cred; |
|
|
struct ucred cred; |
|
|
@@ -667,9 +658,6 @@ removeea setea
|
|
|
|
|
|
|
|
|
@@ -698,9 +689,6 @@ def configure(conf):
|
|
|
|
|
|
|
|
|
# look for a method of finding the list of network interfaces |
|
|
# look for a method of finding the list of network interfaces |
|
|
for method in ['HAVE_IFACE_GETIFADDRS', 'HAVE_IFACE_AIX', 'HAVE_IFACE_IFCONF', 'HAVE_IFACE_IFREQ']: |
|
|
for method in ['HAVE_IFACE_GETIFADDRS', 'HAVE_IFACE_AIX', 'HAVE_IFACE_IFCONF', 'HAVE_IFACE_IFREQ']: |
|
@ -59,7 +58,7 @@ |
|
|
if conf.CHECK_CODE(''' |
|
|
if conf.CHECK_CODE(''' |
|
|
#define %s 1 |
|
|
#define %s 1 |
|
|
#define NO_CONFIG_H 1 |
|
|
#define NO_CONFIG_H 1 |
|
|
@@ -682,7 +670,7 @@ removeea setea
|
|
|
|
|
|
|
|
|
@@ -713,7 +701,7 @@ def configure(conf):
|
|
|
#include "test/getifaddrs.c" |
|
|
#include "test/getifaddrs.c" |
|
|
''' % method, |
|
|
''' % method, |
|
|
method, |
|
|
method, |
|
@ -68,7 +67,7 @@ |
|
|
addmain=False, |
|
|
addmain=False, |
|
|
execute=True): |
|
|
execute=True): |
|
|
break |
|
|
break |
|
|
@@ -730,7 +718,6 @@ def build(bld):
|
|
|
|
|
|
|
|
|
@@ -761,7 +749,6 @@ def build(bld):
|
|
|
break |
|
|
break |
|
|
|
|
|
|
|
|
extra_libs = '' |
|
|
extra_libs = '' |
|
|