summaryrefslogtreecommitdiff
path: root/devel/cppadvio/files/patch-TCPstream.cc
blob: 14c81a0639fd3efb57513230912c0eb4ccb8e61f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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