Fix build on OpenBSD
authorJasper Lievisse Adriaanse <jasper@humppa.nl>
Wed, 2 Dec 2009 12:38:58 +0000 (10:38 -0200)
committerJohan Dahlin <johan@gnome.org>
Wed, 2 Dec 2009 12:39:31 +0000 (10:39 -0200)
Due to a missing header, gobject-introspection fails to compile on OpenBSD.
And only due to headers-including-headers practice this doesn't blow up on
many other platforms.

https://bugzilla.gnome.org/show_bug.cgi?id=596226

girepository/girffi.c

index 83e6542..d7c52f6 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  */
+
+#include <sys/types.h>
+#include <sys/mman.h>
+
 #include <config.h>
 #include <errno.h>
 #include <string.h>
-#include <sys/mman.h>
 #include <unistd.h>
 #include "girffi.h"
 #include "girepository.h"