$OpenBSD: patch-src_rrd_config_bottom_h,v 1.2 2015/11/23 11:41:02 sthen Exp $
--- src/rrd_config_bottom.h.orig	Fri May  1 09:45:47 2015
+++ src/rrd_config_bottom.h	Fri May 15 14:37:54 2015
@@ -16,12 +16,21 @@
 #endif
 
 /* FreeBSD 4.8 wants this included BEFORE sys/types.h */
+#ifdef FreeBSD
 #ifdef HAVE_SYS_MMAN_H
 # include <sys/mman.h>
 #endif
+#endif
 
 #ifdef HAVE_SYS_TYPES_H
 # include <sys/types.h>
+#endif
+
+/* ... but OpenBSD must have it included AFTER sys/types.h */
+#ifndef FreeBSD
+#ifdef HAVE_SYS_MMAN_H
+# include <sys/mman.h>
+#endif
 #endif
 
 #ifdef HAVE_SYS_PARAM_H
