Index: configure
--- configure.orig
+++ configure
@@ -350,6 +350,9 @@ case "${ostype}" in
     darwin)
         defconfigh "_DARWIN_C_SOURCE"
         ;;
+    openbsd)
+        defconfigh "_BSD_SOURCE"
+        ;;
     sunos)
         defconfigh "__EXTENSIONS__"
         ;;
