pound.patch 817 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Index: http.c
  2. --- http.c.orig 2006-12-09 09:39:26 +0100
  3. +++ http.c 2006-12-10 10:38:26 +0100
  4. @@ -29,6 +29,10 @@
  5. #include "pound.h"
  6. +#ifndef SOL_TCP
  7. +#define SOL_TCP SOL_SOCKET
  8. +#endif
  9. +
  10. /* HTTP error replies */
  11. static char *h500 = "500 Internal Server Error",
  12. *h501 = "501 Not Implemented",
  13. Index: pound.h
  14. --- pound.h.orig 2006-12-09 09:39:26 +0100
  15. +++ pound.h 2006-12-10 10:38:26 +0100
  16. @@ -31,6 +31,12 @@
  17. #include <stdio.h>
  18. #include <math.h>
  19. +#if HAVE_PTHREAD_H
  20. +#include <pthread.h>
  21. +#else
  22. +#error "Pound needs pthread.h"
  23. +#endif
  24. +
  25. #if HAVE_STDLIB_H
  26. #include <stdlib.h>
  27. #else
  28. @@ -47,12 +53,6 @@
  29. #include <getopt.h>
  30. #endif
  31. -#if HAVE_PTHREAD_H
  32. -#include <pthread.h>
  33. -#else
  34. -#error "Pound needs pthread.h"
  35. -#endif
  36. -
  37. #if HAVE_STRING_H
  38. #include <string.h>
  39. #else