You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
2.4 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* source: xioconfig.h */
  2. /* Copyright Gerhard Rieger and contributors (see file CHANGES) */
  3. /* Published under the GNU General Public License V.2, see file COPYING */
  4. #ifndef __xioconfig_h_included
  5. #define __xioconfig_h_included 1
  6. /* ensure some dependencies between configure WITH defines. must be included
  7. past config.h */
  8. #if WITH_STDIO || WITH_FDNUM
  9. # define WITH_FD 1
  10. #endif
  11. #if WITH_FILE || WITH_GOPEN || WITH_CREAT || WITH_PIPE
  12. # define WITH_OPEN 1
  13. #endif
  14. #if WITH_OPEN || WITH_PIPE || WITH_UNIX || WITH_PTY
  15. # define WITH_NAMED 1
  16. #endif
  17. #if WITH_TERMIOS || WITH_PTY || WITH_READLINE
  18. # define _WITH_TERMIOS 1
  19. #endif
  20. #if WITH_SOCKS4A
  21. # define WITH_SOCKS4 1
  22. #endif
  23. #if WITH_SOCKS4 || WITH_PROXY
  24. # define WITH_TCP 1
  25. # define WITH_IP4 1 /* currently this socks implementation does not work
  26. with IP6 */
  27. #endif
  28. #if WITH_OPENSSL
  29. # define WITH_TCP 1
  30. # define WITH_IP4 1
  31. #endif
  32. #if WITH_IP6
  33. # if !defined(HAVE_NETINET_IP6_H)
  34. # undef WITH_IP6
  35. # endif
  36. #endif
  37. #if !WITH_IP4 && !WITH_IP6
  38. # if WITH_TCP || WITH_UDP || WITH_RAWIP
  39. # define WITH_IP4 1
  40. # endif
  41. #endif
  42. #if WITH_UNIX || WITH_IP4 || WITH_IP6 || WITH_SOCKS4 || WITH_RAWIP || WITH_GENERICSOCKET
  43. # define _WITH_SOCKET 1
  44. #else
  45. # undef _WITH_SOCKET
  46. #endif
  47. #if !_WITH_SOCKET
  48. # undef WITH_LISTEN
  49. #endif
  50. #if !WITH_LISTEN
  51. # undef WITH_LIBWRAP
  52. #endif
  53. #if WITH_GENERICSOCKET || WITH_TUN
  54. # define _WITH_SOCKET 1
  55. #endif
  56. #if WITH_IP4 || WITH_TUN
  57. # define _WITH_IP4 1
  58. #endif
  59. #if WITH_IP6 || WITH_TUN
  60. # define _WITH_IP6 1
  61. #endif
  62. #if WITH_NAMED || WITH_TUN
  63. # define _WITH_NAMED 1
  64. #endif
  65. #if WITH_FILE || WITH_TUN
  66. # define _WITH_FILE 1
  67. #endif
  68. #if HAVE_DEV_PTMX && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_PROTOTYPE_LIB_ptsname
  69. #else
  70. # undef HAVE_DEV_PTMX
  71. #endif
  72. #if HAVE_DEV_PTC /* && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_PROTOTYPE_LIB_ptsname */
  73. #else
  74. # undef HAVE_DEV_PTC
  75. #endif
  76. /* MacOS does not seem to have any pty implementation */
  77. #if WITH_PTY && (HAVE_DEV_PTC || HAVE_DEV_PTMX || HAVE_OPENPTY)
  78. # define HAVE_PTY 1
  79. #else
  80. # undef HAVE_PTY
  81. #endif
  82. #ifndef HAVE_TYPE_SOCKLEN
  83. typedef int socklen_t;
  84. #endif /* !defined(HAVE_TYPE_SOCKLEN) */
  85. #ifndef HAVE_TYPE_UINT8
  86. typedef unsigned char uint8_t;
  87. #endif
  88. #ifndef HAVE_TYPE_UINT16
  89. typedef unsigned short uint16_t;
  90. #endif
  91. #ifndef HAVE_TYPE_UINT32
  92. typedef unsigned int uint32_t;
  93. #endif
  94. #ifndef HAVE_TYPE_SA_FAMILY_T
  95. typedef uint16_t sa_family_t;
  96. #endif
  97. #endif /* !defined(__xioconfig_h_included) */