Index: http.c
--- http.c.orig	2006-12-09 09:39:26 +0100
+++ http.c	2006-12-10 10:38:26 +0100
@@ -29,6 +29,10 @@
 
 #include    "pound.h"
 
+#ifndef SOL_TCP
+#define SOL_TCP SOL_SOCKET
+#endif
+
 /* HTTP error replies */
 static char *h500 = "500 Internal Server Error",
             *h501 = "501 Not Implemented",
Index: pound.h
--- pound.h.orig	2006-12-09 09:39:26 +0100
+++ pound.h	2006-12-10 10:38:26 +0100
@@ -31,6 +31,12 @@
 #include    <stdio.h>
 #include    <math.h>
 
+#if HAVE_PTHREAD_H
+#include    <pthread.h>
+#else
+#error "Pound needs pthread.h"
+#endif
+
 #if HAVE_STDLIB_H
 #include    <stdlib.h>
 #else
@@ -47,12 +53,6 @@
 #include    <getopt.h>
 #endif
 
-#if HAVE_PTHREAD_H
-#include    <pthread.h>
-#else
-#error "Pound needs pthread.h"
-#endif
-
 #if HAVE_STRING_H
 #include    <string.h>
 #else
