1 #include "freebsd4.h"
2 #define darwin darwin
3 
4 #define CHECK_RT_FLAGS 1
5 
6 /*
7  * udp_inpcb list symbol, e.g. for mibII/udpTable.c
8  */
9 #define INP_NEXT_SYMBOL inp_next
10 
11 /*
12  * Mac OS X should only use the modern API and definitions.
13  */
14 #ifndef NETSNMP_NO_LEGACY_DEFINITIONS
15 #define NETSNMP_NO_LEGACY_DEFINITIONS 1
16 #endif
17 
18 /*
19  * use new host resources files as well
20  */
21 #define NETSNMP_INCLUDE_HOST_RESOURCES
22 #define NETSNMP_INCLUDE_HRSWINST_REWRITES
23 #define NETSNMP_INCLUDE_HRSWRUN_REWRITES
24 #undef NETSNMP_INCLUDE_HRSWRUN_WRITE_SUPPORT
25 #define NETSNMP_CAN_GET_DISK_LABEL 1
26 
27 /*
28  * Enabling this restricts the compiler to mostly public APIs.
29  */
30 #ifndef __APPLE_API_STRICT_CONFORMANCE
31 #define __APPLE_API_STRICT_CONFORMANCE 1
32 #endif
33 #ifndef __APPLE_API_UNSTABLE
34 #define __APPLE_API_UNSTABLE 1
35 #endif
36 
37 /*
38  * Although Darwin does have an fstab.h file, getfsfile etc. always return null
39  * At least, as of 5.3.
40  */
41 #undef HAVE_FSTAB_H
42 
43 #define SWAPFILE_DIR "/private/var/vm"
44 #define SWAPFILE_PREFIX "swapfile"
45 
46 /*
47  * These apparently used to be in netinet/tcp_timers.h, but went away in
48  * 10.4.2. Define them here til we find out a way to get the real values.
49  */
50 #define TCPTV_MIN       (  1*PR_SLOWHZ)         /* minimum allowable value */
51 #define TCPTV_REXMTMAX  ( 64*PR_SLOWHZ)         /* max allowable REXMT value */
52 
53 /*
54  * Because Mac OS X is built on Mach, it does not provide a BSD-compatible
55  * VM statistics API.
56  */
57 #define USE_MACH_HOST_STATISTICS 1
58 
59 /*
60  * utility macro used in several darwin specific files
61  */
62 #define SNMP_CFRelease(x) do { if (x) { CFRelease(x); x = NULL; } } while(0)
63 
64 /*
65  * Mac OS X runs on both PPC and Intel hardware,
66  *   which handle udpTable index values differently
67  */
68 #include <TargetConditionals.h>
69 #ifdef TARGET_RT_LITTLE_ENDIAN
70 #define UDP_ADDRESSES_IN_HOST_ORDER 1
71 #endif
72