summaryrefslogtreecommitdiff
path: root/devel/cppadvio/files
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-03-17 09:36:54 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-03-17 09:36:54 +0000
commitf728044365d4e74d964dd4a9b300fbde4520b63d (patch)
tree9a9529ac632b62b0bab37a9275827f4f0030ebc0 /devel/cppadvio/files
parentAdd tenebrae 1.04, (diff)
- Fix build on 4-x alpha
PR: ports/64362 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=104268
Diffstat (limited to 'devel/cppadvio/files')
-rw-r--r--devel/cppadvio/files/patch-TCPstream.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/cppadvio/files/patch-TCPstream.cc b/devel/cppadvio/files/patch-TCPstream.cc
new file mode 100644
index 000000000000..14c81a0639fd
--- /dev/null
+++ b/devel/cppadvio/files/patch-TCPstream.cc
@@ -0,0 +1,11 @@
+--- TCPstream.cc.orig Wed Mar 17 10:34:32 2004
++++ TCPstream.cc Wed Mar 17 10:34:50 2004
+@@ -44,7 +44,7 @@
+ {
+ // Convertion between the host and the network
+ // byte orders
+-#if !defined(htons) && !defined(linux)
++#if !defined(htons) && !defined(linux) && !defined(_MACHINE_ENDIAN_H_)
+ unsigned short htons(unsigned int data); // For a short data item
+ unsigned short ntohs(unsigned int data); // For a short data item
+ unsigned long htonl(unsigned long data); // For a long data item