[gobject-introspection] Fix build on OpenBSD



commit 402ca58be8bbf4a33a116f9bd3433fefe6e17052
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date:   Wed Dec 2 10:38:58 2009 -0200

    Fix build on OpenBSD
    
    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 |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/girepository/girffi.c b/girepository/girffi.c
index 83e6542..d7c52f6 100644
--- a/girepository/girffi.c
+++ b/girepository/girffi.c
@@ -18,10 +18,13 @@
  * 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"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]