From 3279243cd1db67bc9aeec13bb3b321ac1e6e4693 Mon Sep 17 00:00:00 2001 From: jmc Date: Sat, 1 Mar 2003 11:08:35 +0000 Subject: Patch htons issue with code. Don't define htons if configure didn't find it and it's not already defined. --- chat/quirc/patches/patch-ac | 13 +++++++++++++ chat/quirc/patches/patch-ad | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 chat/quirc/patches/patch-ac create mode 100644 chat/quirc/patches/patch-ad (limited to 'chat/quirc/patches') 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 -- cgit v1.2.3