diff options
Diffstat (limited to 'sys-libs/tdb/files/tdb-remove-check-bsd-strtoll.patch')
-rw-r--r-- | sys-libs/tdb/files/tdb-remove-check-bsd-strtoll.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-libs/tdb/files/tdb-remove-check-bsd-strtoll.patch b/sys-libs/tdb/files/tdb-remove-check-bsd-strtoll.patch new file mode 100644 index 00000000..8108209a --- /dev/null +++ b/sys-libs/tdb/files/tdb-remove-check-bsd-strtoll.patch @@ -0,0 +1,25 @@ +diff -Naur tdb-1.2.11.orig/lib/replace/wscript tdb-1.2.11/lib/replace/wscript +--- tdb-1.2.11.orig/lib/replace/wscript 2012-11-30 08:51:31.000000000 +0000 ++++ tdb-1.2.11/lib/replace/wscript 2014-02-23 12:37:58.921617847 +0000 +@@ -215,21 +215,6 @@ + + #Some OS (ie. freebsd) return EINVAL if the convertion could not be done, it's not what we expect + #Let's detect those cases +- if conf.CONFIG_SET('HAVE_STRTOLL'): +- conf.CHECK_CODE(''' +- long long nb = strtoll("Text", NULL, 0); +- if (errno == EINVAL) { +- return 0; +- } else { +- return 1; +- } +- ''', +- msg="Checking correct behavior of strtoll", +- headers = 'errno.h', +- execute = True, +- define_ret = True, +- define = 'HAVE_BSD_STRTOLL', +- ) + conf.CHECK_FUNCS('if_nametoindex strerror_r') + conf.CHECK_FUNCS('getdirentries getdents syslog') + conf.CHECK_FUNCS('gai_strerror get_current_dir_name') |