[glib] Fix GIO build on Solaris



commit a33aaad00c5e0ce135e34a3280f2560546fe7738
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 28 20:50:43 2011 -0500

    Fix GIO build on Solaris
    
    Major and minor are defined in sys/mkdev.h on Solaris
    
    Patch by Fabian Groffen
    https://bugzilla.gnome.org/show_bug.cgi?id=637013

 configure.ac       |    2 +-
 gio/gdbusmessage.c |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 38bd583..2fcc5cb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -857,7 +857,7 @@ AC_CHECK_HEADERS([sys/time.h sys/times.h sys/wait.h unistd.h values.h])
 AC_CHECK_HEADERS([sys/select.h sys/types.h stdint.h inttypes.h sched.h malloc.h])
 AC_CHECK_HEADERS([sys/vfs.h sys/mount.h sys/vmount.h sys/statfs.h sys/statvfs.h])
 AC_CHECK_HEADERS([mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h sys/sysctl.h fstab.h])
-AC_CHECK_HEADERS([sys/uio.h])
+AC_CHECK_HEADERS([sys/uio.h sys/mkdev.h])
 
 # check for structure fields
 AC_CHECK_MEMBERS([struct stat.st_mtimensec, struct stat.st_mtim.tv_nsec, struct stat.st_atimensec, struct stat.st_atim.tv_nsec, struct stat.st_ctimensec, struct stat.st_ctim.tv_nsec])
diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c
index 92ee23a..a7878b0 100644
--- a/gio/gdbusmessage.c
+++ b/gio/gdbusmessage.c
@@ -29,6 +29,9 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifdef HAVE_SYS_MKDEV_H
+#include <sys/mkdev.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif



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