$OpenBSD: patch-main_php_h,v 1.1.1.1 2013/08/07 16:46:55 robert Exp $
--- main/php.h.orig.port	Thu Jul 18 16:37:33 2013
+++ main/php.h	Sun Jul 28 11:30:14 2013
@@ -145,7 +145,9 @@ END_EXTERN_C()
 # if PHP_WIN32
 typedef int socklen_t;
 # else
+#   if !defined(__OpenBSD__)
 typedef unsigned int socklen_t;
+#   endif
 # endif
 #endif
 
