21955941 libsocket tweak needed for libmicrohttpd
authorJohn Beck <John.Beck@Oracle.COM>
Mon, 28 Sep 2015 10:53:03 -0700
changeset 4960 55cc0647d4a7
parent 4959 a998fbbcbd44
child 4961 bb9b5359088a
21955941 libsocket tweak needed for libmicrohttpd
components/libmicrohttpd/patches/005.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/libmicrohttpd/patches/005.patch	Mon Sep 28 10:53:03 2015 -0700
@@ -0,0 +1,16 @@
+Tomas Heran <[email protected]>
+libnsl and libsocket need to be linked to on Solaris 11 for socket API.
+Reported upstream as: https://gnunet.org/bugs/view.php?id=3752
+
+diff -r d118e0f483a4 configure.ac
+--- a/configure.ac	Thu Feb 05 14:49:09 2015 +0100
++++ b/configure.ac	Thu Apr 09 16:39:50 2015 +0200
[email protected]@ -135,6 +135,8 @@
+ *solaris*)
+      AC_DEFINE_UNQUOTED(SOLARIS,1,[This is a Solaris system])
+      AC_DEFINE_UNQUOTED(_REENTRANT,1,[Need with solaris or errno doesnt work])
++     AC_SEARCH_LIBS(gethostbyname, nsl)
++     AC_SEARCH_LIBS(socket, socket)
+      ;;
+ *arm-linux*)
+      AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux kernel])