summaryrefslogtreecommitdiff
path: root/chat/quirc/patches
diff options
context:
space:
mode:
authorjmc <jmc@pkgsrc.org>2003-03-01 11:08:35 +0000
committerjmc <jmc@pkgsrc.org>2003-03-01 11:08:35 +0000
commit3279243cd1db67bc9aeec13bb3b321ac1e6e4693 (patch)
treea55b0e327263c2efb129739443e8a2035b93f756 /chat/quirc/patches
parent836eb2bb4ef236a4e9adee3fa2043f13e8f4d1e6 (diff)
downloadpkgsrc-3279243cd1db67bc9aeec13bb3b321ac1e6e4693.tar.gz
Patch htons issue with code. Don't define htons if configure didn't find it
and it's not already defined.
Diffstat (limited to 'chat/quirc/patches')
-rw-r--r--chat/quirc/patches/patch-ac13
-rw-r--r--chat/quirc/patches/patch-ad13
2 files changed, 26 insertions, 0 deletions
diff --git a/chat/quirc/patches/patch-ac b/chat/quirc/patches/patch-ac
new file mode 100644
index 00000000000..e06d46d39cc
--- /dev/null
+++ b/chat/quirc/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2003/03/01 11:08:35 jmc Exp $
+
+--- support.cc.orig Sat Mar 1 11:02:55 2003
++++ support.cc Sat Mar 1 11:03:12 2003
+@@ -46,7 +46,7 @@
+ return string;
+ }
+
+-#ifndef HAVE_HTONS
++#if !defined(HAVE_HTONS) && !defined(htons)
+ unsigned short htons(unsigned short n) {
+ return (n%256)*256+n/256;
+ }
diff --git a/chat/quirc/patches/patch-ad b/chat/quirc/patches/patch-ad
new file mode 100644
index 00000000000..68d5194022e
--- /dev/null
+++ b/chat/quirc/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2003/03/01 11:08:35 jmc Exp $
+
+--- support.h.orig Sat Mar 1 11:01:17 2003
++++ support.h Sat Mar 1 11:01:44 2003
+@@ -15,7 +15,7 @@
+ 0, effectively shortening the string's length by one. */
+ extern char *chop(char *);
+
+-#ifndef HAVE_HTONS
++#if !defined(HAVE_HTONS) && !defined(htons)
+ /* This function switches around the two bytes in the integer */
+ extern unsigned short htons(unsigned short n);
+ #endif