darwin8.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * While Darwin 8 (aka, Mac OS X 10.4 Tiger) is "BSD-like", it differs
  3. * substantially enough to not warrant pretending it is a BSD flavor.
  4. * This first section are the vestigal BSD remnants.
  5. */
  6. /*
  7. * BSD systems use a different method of looking up sockaddr_in values
  8. */
  9. /* #define NEED_KLGETSA 1 */
  10. #define CHECK_RT_FLAGS 1
  11. /*
  12. * this is not good enough before freebsd3!
  13. */
  14. /* #undef HAVE_NET_IF_MIB_H */
  15. /*
  16. * This section adds the relevant definitions from generic.h
  17. * (a file we don't include here)
  18. */
  19. /*
  20. * udp_inpcb list symbol, e.g. for mibII/udpTable.c
  21. */
  22. #define INP_NEXT_SYMBOL inp_next
  23. /*
  24. * This section defines Mac OS X 10.4 (and later) specific additions.
  25. */
  26. #define darwin 8
  27. /*
  28. * Mac OS X should only use the modern API and definitions.
  29. */
  30. #ifndef NETSNMP_NO_LEGACY_DEFINITIONS
  31. #define NETSNMP_NO_LEGACY_DEFINITIONS 1
  32. #endif
  33. /*
  34. * (eventually) Enabling this forces the compiler to only use public APIs.
  35. */
  36. /*#ifndef __APPLE_API_STRICT_CONFORMANCE
  37. *#define __APPLE_API_STRICT_CONFORMANCE 1
  38. *#endif
  39. */
  40. /*
  41. * Darwin's tools are capable of building multiple architectures in one pass.
  42. * As a result, platform definitions should be deferred until compile time.
  43. */
  44. #ifdef BYTE_ORDER
  45. # undef WORDS_BIGENDIAN
  46. # if BYTE_ORDER == BIG_ENDIAN
  47. # define WORDS_BIGENDIAN 1
  48. # endif
  49. #endif
  50. /*
  51. * Although Darwin does have an fstab.h file, getfsfile etc. always return null.
  52. * At least, as of 5.3.
  53. */
  54. #undef HAVE_FSTAB_H
  55. #define SWAPFILE_DIR "/private/var/vm"
  56. #define SWAPFILE_PREFIX "swapfile"
  57. /*
  58. * These apparently used to be in netinet/tcp_timers.h, but went away in
  59. * 10.4.2. Define them here til we find out a way to get the real values.
  60. */
  61. #define TCPTV_MIN ( 1*PR_SLOWHZ) /* minimum allowable value */
  62. #define TCPTV_REXMTMAX ( 64*PR_SLOWHZ) /* max allowable REXMT value */
  63. /*
  64. * Because Mac OS X is built on Mach, it does not provide a BSD-compatible
  65. * VM statistics API.
  66. */
  67. #define USE_MACH_HOST_STATISTICS 1
  68. /*
  69. * This tells code that manipulates IPv6 that the structures are unified,
  70. * i.e., IPv4 and IPv6 use the same structs.
  71. * This should eventually be replaced with a configure directive.
  72. */
  73. /* #define USE_UNIFIED_IPV6_STRUCTS 1 */
  74. #undef STRUCT_in6pcb_HAS_inp_vflag