[glib] Fix build on mingw
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Subject: [glib] Fix build on mingw
- Date: Fri, 19 Jun 2009 23:22:33 -0400 (EDT)
commit 854a43a3cd5cb8cc97b66d6f8f661e2a7096acda
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 19 23:18:09 2009 -0400
Fix build on mingw
Mingw does not have sys/uio.h. This was reported in bug 585937.
Author: Matthias Clasen <mclasen redhat com>
configure.in | 1 +
gio/gsocket.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index de0d399..d253f60 100644
--- a/configure.in
+++ b/configure.in
@@ -857,6 +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 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])
# 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/gsocket.c b/gio/gsocket.c
index 0670ee4..151adb5 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -38,7 +38,9 @@
# include <unistd.h>
#endif
+#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
+#endif
#include "gsocket.h"
#include "gcancellable.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]