components/libmicrohttpd/patches/005.patch
author Tomas Heran <tomas.heran@oracle.com>
Thu, 16 Apr 2015 11:08:39 +0200
branchs11-update
changeset 4142 ac544f9e49ee
permissions -rw-r--r--
PSARC/2014/289 libmicrohttpd 20235905 GNU Libmicrohttpd - C library HTTP server should be added to Userland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4142
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     1
Tomas Heran <[email protected]>
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     2
libnsl and libsocket need to be linked to on Solaris 11 for socket API.
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     3
Reported upstream as: https://gnunet.org/bugs/view.php?id=3752
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     4
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     5
diff -r d118e0f483a4 configure.ac
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     6
--- a/configure.ac	Thu Feb 05 14:49:09 2015 +0100
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     7
+++ b/configure.ac	Thu Apr 09 16:39:50 2015 +0200
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     8
@@ -135,6 +135,8 @@
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     9
 *solaris*)
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    10
      AC_DEFINE_UNQUOTED(SOLARIS,1,[This is a Solaris system])
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    11
      AC_DEFINE_UNQUOTED(_REENTRANT,1,[Need with solaris or errno doesnt work])
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    12
+     AC_SEARCH_LIBS(gethostbyname, nsl)
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    13
+     AC_SEARCH_LIBS(socket, socket)
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    14
      ;;
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    15
 *arm-linux*)
ac544f9e49ee PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    16
      AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux kernel])