summaryrefslogtreecommitdiffstats
path: root/package/owfs/0001-configure.ac-check-for-localtime_r.patch
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2016-02-23 00:07:51 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-03-05 15:28:37 +0100
commitf2e3851118bf5def0fb236c77da37c4e569c41bb (patch)
tree25a3202b696fd5b905055a89da59d860276b52d7 /package/owfs/0001-configure.ac-check-for-localtime_r.patch
parent35ab3a372f3415e8f7aa9279600b68827c94b645 (diff)
downloadbuildroot-f2e3851118bf5def0fb236c77da37c4e569c41bb.tar.gz
buildroot-f2e3851118bf5def0fb236c77da37c4e569c41bb.zip
owfs: new package
All modules are always enabled when their dependencies are satisfied. tcl doesn't work because the tclConfig.sh installed by our tcl package is wrong: it adds -I/usr/include. perl doesn't work out of the box, I didn't investigate. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/owfs/0001-configure.ac-check-for-localtime_r.patch')
-rw-r--r--package/owfs/0001-configure.ac-check-for-localtime_r.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/owfs/0001-configure.ac-check-for-localtime_r.patch b/package/owfs/0001-configure.ac-check-for-localtime_r.patch
new file mode 100644
index 0000000000..c4c384457f
--- /dev/null
+++ b/package/owfs/0001-configure.ac-check-for-localtime_r.patch
@@ -0,0 +1,33 @@
+From 75e92438bcdb78a90912366b07bf503646806686 Mon Sep 17 00:00:00 2001
+From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
+Date: Sun, 21 Feb 2016 17:02:06 +0100
+Subject: [PATCH] configure.ac: check for localtime_r
+
+HAVE_LOCALTIME_R is used in owftp.c, so it should be checked for.
+
+Without this, static build fails because localtime_r is defined twice.
+
+Upstream-Status: Submitted
+https://sourceforge.net/p/owfs/mailman/message/34873667/
+
+Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index c22dde9..12fdd18 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1529,7 +1529,7 @@ AC_FUNC_SELECT_ARGTYPES
+ AC_FUNC_STRFTIME
+ AC_FUNC_STRTOD
+ AC_TYPE_SIGNAL
+-AC_CHECK_FUNCS([accept daemon getaddrinfo freeaddrinfo gethostbyname2_r gethostbyaddr_r gethostbyname_r getservbyname_r getopt getopt_long gettimeofday inet_ntop inet_pton memchr memset select socket strcasecmp strchr strdup strncasecmp strtol strtoul twalk tsearch tfind tdelete tdestroy vasprintf strsep vsprintf vsnprintf writev getline])
++AC_CHECK_FUNCS([accept daemon getaddrinfo freeaddrinfo gethostbyname2_r gethostbyaddr_r gethostbyname_r getservbyname_r getopt getopt_long gettimeofday inet_ntop inet_pton memchr memset select socket strcasecmp strchr strdup strncasecmp strtol strtoul twalk tsearch tfind tdelete tdestroy vasprintf strsep vsprintf vsnprintf writev getline localtime_r])
+
+ if test "${ENABLE_ZERO}" = "true" ; then
+ AC_SEARCH_LIBS(dlopen, dl, AC_DEFINE(HAVE_DLOPEN, 1, [Define if you have dlopen]))
+--
+2.7.0
+
OpenPOWER on IntegriCloud