aboutsummaryrefslogtreecommitdiffstats
path: root/mbone/mcl/files/patch-mcl_osdep.h
blob: 1effff377a9800d94634b2f597c0556549284e85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- src/common/mcl_osdep.h.orig Sun Dec  7 18:58:22 2003
+++ src/common/mcl_osdep.h  Sun Dec  7 19:00:39 2003
@@ -44,7 +44,7 @@
  * bit field order is compiler/OS dependant
  * With linux, see the above LINUX_XXX defines...
  */
-#if defined(LINUX_I386) || defined(WIN32)
+#if defined(LINUX_I386) || defined(WIN32) || defined (FREEBSD)
 #define _BIT_FIELDS_LTOH
 #undef _BIT_FIELDS_HTOL
 
@@ -58,7 +58,7 @@
 /*
  * sighandler
  */
-#if defined(LINUX)
+#if defined(LINUX) || defined (FREEBSD)
    /* On Linux systems, signal handlers must be of __sighandler_t type */
 #define    sighandler_t    __sighandler_t
 
@@ -77,9 +77,9 @@
 #define u_int16_t  ushort_t    /* or uint16_t */
 #define u_int32_t  uint_t      /* or uint32_t */
 
-#elif defined (WIN32) 
+#elif defined (WIN32) || defined (FREEBSD)
 
-/* u_xxx absent from WIN32! */
+/* u_xxx absent from WIN32 and ulong absent from FreeBSD! */
 #define u_int8_t   unsigned char       /* or uint8_t */
 #define u_int16_t  unsigned short      /* or uint16_t */
 #define u_int32_t  unsigned int        /* or uint32_t */