[gtk+/gtk-2-24] gtkmountoperation-x11: unbreak compilation on OpenBSD.



commit 4a22e2ceab7e52e700bba4cb8e61ebfb508c05fb
Author: Antoine Jacoutot <ajacoutot openbsd org>
Date:   Tue Sep 20 11:57:49 2011 +0200

    gtkmountoperation-x11: unbreak compilation on OpenBSD.
    
    Add missing header to prevent undeclared definitions.
    Bug #659565

 gtk/gtkmountoperation-x11.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmountoperation-x11.c b/gtk/gtkmountoperation-x11.c
index 92914f6..328a4be 100644
--- a/gtk/gtkmountoperation-x11.c
+++ b/gtk/gtkmountoperation-x11.c
@@ -42,6 +42,13 @@
 #include <signal.h>
 #include <errno.h>
 
+#if defined(__OpenBSD__)
+#include <sys/param.h>
+#include <kvm.h>
+#include <fcntl.h>
+#include <sys/sysctl.h>
+#endif
+
 #include "gtkmountoperationprivate.h"
 
 #include "gtkalias.h"



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