[gnome-builder] Fix build on OpenBSD.



commit 42a3d2a4ca6793d1ff8dd97914999921268c2667
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Mon Apr 6 11:23:26 2015 +0200

    Fix build on OpenBSD.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747400

 libide/ide-log.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libide/ide-log.c b/libide/ide-log.c
index a28a56b..8d4040b 100644
--- a/libide/ide-log.c
+++ b/libide/ide-log.c
@@ -24,9 +24,9 @@
 # include <sys/utsname.h>
 # include <sys/types.h>
 # include <sys/syscall.h>
-#elif defined __FreeBSD__
+#elif defined __FreeBSD__ || defined __OpenBSD__
 # include <sys/utsname.h>
-#endif /* !__linux__ && !__FreeBSD__ */
+#endif /* !__linux__ && !__FreeBSD__ && !__OpenBSD__ */
 
 #include <glib.h>
 #include <string.h>
@@ -204,7 +204,7 @@ ide_log_init (gboolean     stdout_,
           g_ptr_array_add (channels, channel);
         }
 
-#if defined __linux__ || defined __FreeBSD__
+#if defined __linux__ || defined __FreeBSD__ || defined __OpenBSD__
       uname (&u);
       memcpy (hostname, u.nodename, sizeof (hostname));
 #else


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