hpux.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #include "sysv.h"
  2. #undef hpux
  3. #define hpux hpux
  4. #ifdef hpux11
  5. #define NETSNMP_DONT_USE_NLIST 1
  6. #endif
  7. /*
  8. * HP-UX needs _REENTRANT defined to pick up strtok_r.
  9. * Otherwise, at least for 64-bit code, strtok_r will not work
  10. * and will make net-snmp segfault.
  11. */
  12. #define _REENTRANT 1
  13. #undef TCP_TTL_SYMBOL
  14. #ifndef hpux11
  15. #define TCP_TTL_SYMBOL "ipDefaultTTL"
  16. #endif
  17. #ifndef hpux11
  18. /*
  19. * hpux specific
  20. */
  21. #define MIB_IPCOUNTER_SYMBOL "MIB_ipcounter"
  22. #define MIB_TCPCOUNTER_SYMBOL "MIB_tcpcounter"
  23. #define MIB_UDPCOUNTER_SYMBOL "MIB_udpcounter"
  24. #endif
  25. #if defined(hpux10) || defined(hpux11)
  26. #undef SWDEVT_SYMBOL
  27. #undef FSWDEVT_SYMBOL
  28. #undef NSWAPFS_SYMBOL
  29. #undef NSWAPDEV_SYMBOL
  30. #undef LOADAVE_SYMBOL
  31. #undef PROC_SYMBOL
  32. #undef NPROC_SYMBOL
  33. #undef TOTAL_MEMORY_SYMBOL
  34. #undef MBSTAT_SYMBOL
  35. #endif
  36. #ifdef hpux11
  37. #undef IPSTAT_SYMBOL
  38. #undef TCP_SYMBOL
  39. #undef TCPSTAT_SYMBOL
  40. #undef UDB_SYMBOL
  41. #undef UDPSTAT_SYMBOL
  42. #undef ICMPSTAT_SYMBOL
  43. #undef IP_FORWARDING_SYMBOL
  44. #undef RTTABLES_SYMBOL
  45. #undef RTHASHSIZE_SYMBOL
  46. #undef RTHOST_SYMBOL
  47. #undef RTNET_SYMBOL
  48. #undef PHYSMEM_SYMBOL
  49. #endif
  50. #define rt_pad1 rt_refcnt
  51. /*
  52. * disable inline for non-gcc compiler
  53. */
  54. #ifndef __GNUC__
  55. # undef NETSNMP_ENABLE_INLINE
  56. # define NETSNMP_ENABLE_INLINE 0
  57. #endif
  58. /*
  59. * prevent sigaction being redefined to cma_sigaction
  60. * (causing build errors on HP-UX 10.20, at least)
  61. */
  62. #ifdef hpux10
  63. #ifndef _CMA_NOWRAPPERS_
  64. # define _CMA_NOWRAPPERS_ 1
  65. #endif
  66. #endif
  67. /* define the extra mib modules that are supported */
  68. #define NETSNMP_INCLUDE_HOST_RESOURCES