summaryrefslogtreecommitdiff
path: root/games/mythserver/files/patch-common::cseries.h
blob: cf200a74adeac55bf6cec8e3c4eeb4f5e9d94dde (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- common/cseries.h.orig	Sat Feb  9 14:57:31 2002
+++ common/cseries.h	Sat Feb  9 14:57:34 2002
@@ -70,6 +70,7 @@
 #define HIGH_WORD(n) (((n)>>16)&0xffff)
 #define LOW_WORD(n) ((n)&0xffff)
 
+#ifndef __FreeBSD__
 #ifdef little_endian
 #define ntohl(q) (((((unsigned long) (q)))>>24) | ((((unsigned long) (q))>>8)&0xff00) | ((((unsigned long) (q))<<8)&0xff0000) | ((((unsigned long) (q))<<24)&0xff000000))
 #define htonl(q) (((((unsigned long) (q)))>>24) | ((((unsigned long) (q))>>8)&0xff00) | ((((unsigned long) (q))<<8)&0xff0000) | ((((unsigned long) (q))<<24)&0xff000000))
@@ -81,6 +82,7 @@
 	#define htonl(q) (q)
 	#define ntohs(q) (q)
 	#define htons(q) (q)
+#endif
 #endif
 #endif