$OpenBSD$
--- src/include/platform.h.orig	Tue Dec 24 15:47:55 2013
+++ src/include/platform.h	Sun Feb  9 11:18:05 2014
@@ -164,6 +164,9 @@
 #if HAVE_UCRED_H
 #include <ucred.h>
 #endif
+#if HAVE_SYS_UCRED_H
+#include <sys/ucred.h>
+#endif
 #ifdef CYGWIN
 #include <windows.h>
 #include <cygwin/if.h>
