You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.4 KiB

  1. diff --git a/lib/replace/wscript b/lib/replace/wscript
  2. index fd00a42..337d559 100644
  3. --- a/lib/replace/wscript
  4. +++ b/lib/replace/wscript
  5. @@ -340,22 +340,13 @@ def configure(conf):
  6. conf.CHECK_FUNCS('prctl dirname basename')
  7. - strlcpy_in_bsd = False
  8. -
  9. - # libbsd on some platforms provides strlcpy and strlcat
  10. - if not conf.CHECK_FUNCS('strlcpy strlcat'):
  11. - if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
  12. - checklibc=True):
  13. - strlcpy_in_bsd = True
  14. - if not conf.CHECK_FUNCS('getpeereid'):
  15. - conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h')
  16. - if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'):
  17. - conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h')
  18. - if not conf.CHECK_FUNCS('setproctitle_init'):
  19. - conf.CHECK_FUNCS_IN('setproctitle_init', 'bsd', headers='sys/types.h bsd/unistd.h')
  20. -
  21. - if not conf.CHECK_FUNCS('closefrom'):
  22. - conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h')
  23. + # Not checking for libbsd
  24. + conf.CHECK_FUNCS('strlcpy strlcat')
  25. + conf.CHECK_FUNCS('getpeereid')
  26. + conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h')
  27. + conf.CHECK_FUNCS('setproctitle_init')
  28. +
  29. + conf.CHECK_FUNCS('closefrom')
  30. conf.CHECK_CODE('''
  31. struct ucred cred;
  32. @@ -698,9 +689,6 @@ def configure(conf):
  33. # look for a method of finding the list of network interfaces
  34. for method in ['HAVE_IFACE_GETIFADDRS', 'HAVE_IFACE_AIX', 'HAVE_IFACE_IFCONF', 'HAVE_IFACE_IFREQ']:
  35. - bsd_for_strlcpy = ''
  36. - if strlcpy_in_bsd:
  37. - bsd_for_strlcpy = ' bsd'
  38. if conf.CHECK_CODE('''
  39. #define %s 1
  40. #define NO_CONFIG_H 1
  41. @@ -713,7 +701,7 @@ def configure(conf):
  42. #include "test/getifaddrs.c"
  43. ''' % method,
  44. method,
  45. - lib='nsl socket' + bsd_for_strlcpy,
  46. + lib='nsl socket',
  47. addmain=False,
  48. execute=True):
  49. break
  50. @@ -761,7 +749,6 @@ def build(bld):
  51. break
  52. extra_libs = ''
  53. - if bld.CONFIG_SET('HAVE_LIBBSD'): extra_libs += ' bsd'
  54. bld.SAMBA_SUBSYSTEM('LIBREPLACE_HOSTCC',
  55. REPLACE_HOSTCC_SOURCE,