patch-include_config_h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. $Id$
  2. evil kludge because configure only checks the host system,
  3. not the build system, yet builds a tool to run on it (cf_gen)
  4. the real way to do this is probably to enhance configure.in
  5. the way gcc uses it if doing a build with build!=(host==target),
  6. but this should be enough for now; contact tg@ (PR#71) if it isn't
  7. --- squid-2.5.STABLE13.orig/include/config.h 2005-04-23 03:32:27.000000000 +0200
  8. +++ squid-2.5.STABLE13/include/config.h 2006-09-18 19:21:26.000000000 +0200
  9. @@ -34,7 +34,36 @@
  10. #ifndef SQUID_CONFIG_H
  11. #define SQUID_CONFIG_H
  12. +#ifndef BUILD_HOST_TOOL
  13. #include "autoconf.h" /* For GNU autoconf variables */
  14. +#else
  15. +/* we just hope our host systems can cope */
  16. +#define STDC_HEADERS 1
  17. +#define HAVE_MEMCPY 1
  18. +#define HAVE_MEMMOVE 1
  19. +#define HAVE_MEMSET 1
  20. +#define HAVE_MKSTEMP 1
  21. +#define HAVE_MKTIME 1
  22. +#define HAVE_ASSERT_H 1
  23. +#define HAVE_CTYPE_H 1
  24. +#define HAVE_DIRENT_H 1
  25. +#define HAVE_ERRNO_H 1
  26. +#define HAVE_FCNTL_H 1
  27. +#define HAVE_GETOPT_H 1
  28. +#define HAVE_INTTYPES_H 1
  29. +#define HAVE_LIMITS_H 1
  30. +#define HAVE_SIGNAL_H 1
  31. +#define HAVE_STDARG_H 1
  32. +#define HAVE_STDDEF_H 1
  33. +#define HAVE_STDIO_H 1
  34. +#define HAVE_STDLIB_H 1
  35. +#define HAVE_STRING_H 1
  36. +#define HAVE_SYS_PARAM_H 1
  37. +#define HAVE_SYS_STAT_H 1
  38. +#define HAVE_SYS_TIME_H 1
  39. +#define HAVE_TIME_H 1
  40. +#define HAVE_UNISTD_H 1
  41. +#endif
  42. #include "version.h"
  43. /****************************************************************************