From ce323ca6f99b3d871948df166349287508dbd2f9 Mon Sep 17 00:00:00 2001 From: Eric Petit Date: Mon, 9 Mar 2009 08:49:11 +0000 Subject: [PATCH] Adds patch for libgcrypt 1.4.4 --- dev-libs/libgcrypt/libgcrypt-1.4.4.patch | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dev-libs/libgcrypt/libgcrypt-1.4.4.patch diff --git a/dev-libs/libgcrypt/libgcrypt-1.4.4.patch b/dev-libs/libgcrypt/libgcrypt-1.4.4.patch new file mode 100644 index 000000000..e923a59ba --- /dev/null +++ b/dev-libs/libgcrypt/libgcrypt-1.4.4.patch @@ -0,0 +1,42 @@ +diff -Naur libgcrypt-1.4.4-orig/configure.ac libgcrypt-1.4.4/configure.ac +--- libgcrypt-1.4.4-orig/configure.ac 2009-03-08 17:29:52.000000000 +0000 ++++ libgcrypt-1.4.4/configure.ac 2009-03-08 17:59:06.000000000 +0000 +@@ -564,6 +564,8 @@ + AC_SEARCH_LIBS(setsockopt, [socket], , + [AC_SEARCH_LIBS(setsockopt, [socket], , , [-lnsl])]) + AC_SEARCH_LIBS(setsockopt, [nsl]) ++# Haiku has everything in -lnetwork ++AC_SEARCH_LIBS(socket, [network]) + + ################################## + #### Checks for header files. #### +diff -Naur libgcrypt-1.4.4-orig/src/ath.c libgcrypt-1.4.4/src/ath.c +--- libgcrypt-1.4.4-orig/src/ath.c 2009-03-08 17:29:52.000000000 +0000 ++++ libgcrypt-1.4.4/src/ath.c 2009-03-08 17:59:06.000000000 +0000 +@@ -24,11 +24,6 @@ + + #include /* Right: We need to use assert and not gcry_assert. */ + #include +-#ifdef HAVE_SYS_SELECT_H +-# include +-#else +-# include +-#endif + #include + #ifndef _WIN32 + #include +diff -Naur libgcrypt-1.4.4-orig/src/ath.h libgcrypt-1.4.4/src/ath.h +--- libgcrypt-1.4.4-orig/src/ath.h 2009-03-08 17:29:52.000000000 +0000 ++++ libgcrypt-1.4.4/src/ath.h 2009-03-08 17:59:06.000000000 +0000 +@@ -25,6 +25,11 @@ + #include + #else + #include ++#ifdef HAVE_SYS_SELECT_H ++# include ++#else ++# include ++#endif + #include + #endif + #include