1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/devel/cppadvio/files/patch-TCPstream.cc
Kirill Ponomarev f728044365 - Fix build on 4-x alpha
PR:		ports/64362
Submitted by:	maintainer
2004-03-17 09:36:54 +00:00

12 lines
571 B
C++

--- 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