diff options
author | Henrik Brix Andersen <brix@FreeBSD.org> | 2010-11-14 14:28:53 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@FreeBSD.org> | 2010-11-14 14:28:53 +0000 |
commit | 08c9ef64852ee77d758852bec19169395093460b (patch) | |
tree | 134f049cd6a62b2f0c44f5969690b62dbcc35c4c /irc/bitlbee/files/patch-configure | |
parent | - Add missing SHA256 sum of webfonts/ielpkth.cab (diff) |
- Add patch for SRV record lookup support on FreeBSD
Submitted by: ashish@
Notes
Notes:
svn path=/head/; revision=264516
Diffstat (limited to 'irc/bitlbee/files/patch-configure')
-rw-r--r-- | irc/bitlbee/files/patch-configure | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/irc/bitlbee/files/patch-configure b/irc/bitlbee/files/patch-configure new file mode 100644 index 000000000000..ec294a4764fb --- /dev/null +++ b/irc/bitlbee/files/patch-configure @@ -0,0 +1,35 @@ +--- configure.orig 2010-10-22 00:51:31.000000000 +0000 ++++ configure 2010-11-14 14:17:19.000000000 +0000 +@@ -319,6 +319,11 @@ EOF + } + + RESOLV_TESTCODE=' ++#ifdef __FreeBSD__ ++#include <sys/types.h> ++#include <netinet/in.h> ++#endif ++ + #include <arpa/nameser.h> + #include <resolv.h> + +@@ -329,13 +334,18 @@ int main() + } + ' + ++LIBRESOLV=-lresolv ++ ++# In FreeBSD res_* routines are present in libc.so ++[ "$arch" = FreeBSD ] && LIBRESOLV= ++ + detect_resolv_dynamic() + { + TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX) + ret=1 +- echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv >/dev/null 2>/dev/null ++ echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - $LIBRESOLV >/dev/null 2>/dev/null + if [ "$?" = "0" ]; then +- echo 'EFLAGS+=-lresolv' >> Makefile.settings ++ echo "EFLAGS+=$LIBRESOLV" >> Makefile.settings + ret=0 + fi + |