config.h.bot 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /* These are from config.h.bot, pasted onto the end of config.h.in. */
  2. #ifdef HAVE_SYS_CDEFS_H
  3. #include <sys/cdefs.h>
  4. #endif
  5. #ifdef HAVE_STDDEF_H
  6. #include <stddef.h>
  7. #endif
  8. /* Use the definitions: */
  9. /* Give us an unsigned 32-bit data type. */
  10. #if SIZEOF_UNSIGNED_LONG==4
  11. #define UWORD32 unsigned long
  12. #elif SIZEOF_UNSIGNED_INT==4
  13. #define UWORD32 unsigned int
  14. #else
  15. #error I do not know what to use for a UWORD32.
  16. #endif
  17. /* The maximum length of a #! interpreter displayed by dpkg-deb. */
  18. #ifdef PATH_MAX
  19. #define INTERPRETER_MAX PATH_MAX
  20. #else
  21. #define INTERPRETER_MAX 1024
  22. #endif
  23. /* GNU C attributes. */
  24. #ifndef FUNCATTR
  25. #ifdef HAVE_GNUC25_ATTRIB
  26. #define FUNCATTR(x) __attribute__(x)
  27. #else
  28. #define FUNCATTR(x)
  29. #endif
  30. #endif
  31. /* GNU C printf formats, or null. */
  32. #ifndef ATTRPRINTF
  33. #ifdef HAVE_GNUC25_PRINTFFORMAT
  34. #define ATTRPRINTF(si,tc) format(printf,si,tc)
  35. #else
  36. #define ATTRPRINTF(si,tc)
  37. #endif
  38. #endif
  39. #ifndef PRINTFFORMAT
  40. #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
  41. #endif
  42. /* GNU C nonreturning functions, or null. */
  43. #ifndef ATTRNORETURN
  44. #ifdef HAVE_GNUC25_NORETURN
  45. #define ATTRNORETURN noreturn
  46. #else /* ! HAVE_GNUC25_NORETURN */
  47. #define ATTRNORETURN
  48. #endif /* HAVE_GNUC25_NORETURN */
  49. #endif /* ATTRNORETURN */
  50. #ifndef NONRETURNING
  51. #define NONRETURNING FUNCATTR((ATTRNORETURN))
  52. #endif /* NONRETURNING */
  53. /* Combination of both the above. */
  54. #ifndef NONRETURNPRINTFFORMAT
  55. #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
  56. #endif
  57. /* GNU C constant functions, or null. */
  58. #ifndef ATTRCONST
  59. #ifdef HAVE_GNUC25_CONST
  60. #define ATTRCONST const
  61. #else
  62. #define ATTRCONST
  63. #endif
  64. #endif
  65. #ifndef CONSTANT
  66. #define CONSTANT FUNCATTR((ATTRCONST))
  67. #endif
  68. /* Declare strerror if we don't have it already. */
  69. #ifndef HAVE_STRERROR
  70. const char *strerror(int);
  71. #endif
  72. /* Declare strsignal if we don't have it already. */
  73. #ifndef HAVE_STRSIGNAL
  74. const char *strsignal(int);
  75. #endif
  76. /* Declare scandir if we don't have it already. */
  77. #ifndef HAVE_SCANDIR
  78. struct dirent;
  79. int scandir(const char *dir, struct dirent ***namelist,
  80. int (*select)(const struct dirent *),
  81. int (*compar)(const void*, const void*));
  82. #endif
  83. /* Declare alphasort if we don't have it already. */
  84. #if !defined(HAVE_ALPHASORT) || !defined(HAVE_ALPHASORT_DECLARATION)
  85. struct dirent;
  86. int alphasort(const struct dirent *a, const struct dirent *b);
  87. #endif
  88. /* Declare unsetenv if we don't have it already. */
  89. #ifndef HAVE_UNSETENV
  90. void unsetenv(const char *x);
  91. #endif
  92. /* Define strtoul if we don't have it already. */
  93. #ifndef HAVE_STRTOUL
  94. #define strtoul strtol
  95. #endif
  96. /* Sort out sysinfo */
  97. #if !defined(HAVE_SYSINFO) && defined(HAVE_NRSYSINFO)
  98. #include <linux/sys.h>
  99. #include <linux/kernel.h>
  100. #include <linux/unistd.h>
  101. static inline _syscall1(int,sysinfo,struct sysinfo*,info)
  102. #endif
  103. /* Define WCOREDUMP if we don't have it already - coredumps won't be
  104. * detected, though.
  105. */
  106. #ifndef WCOREDUMP
  107. #define WCOREDUMP(x) 0
  108. #endif
  109. /* Set BUILDOLDPKGFORMAT to 1 to build old-format archives by default.
  110. */
  111. #ifndef BUILDOLDPKGFORMAT
  112. #define BUILDOLDPKGFORMAT 0
  113. #endif