[PATCH] glib on Minix



Hi,

Last weekend I successfully ported the midnight commander to Minix
(3.1.2). I had to apply the attached patch to make glib (2.8.6) build on
Minix (of course the hunk for configure.in applies to configure when
building from prerolled tarball). It disables the usage of fchmod which
doesn't exist on Minix and the building of the timeloop tests as rusage
is undefined on Minix as well.

gfileutils.o: undefined reference to `_fchmod`
timeloop.c: 183: size of rusage undefined

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research

--- glib-2.8.6.000/configure.in	2006-01-18 17:43:19.000000000 +0100
+++ glib-2.8.6/configure.in	2006-05-21 19:52:24.000000000 +0200
@@ -1321,7 +1321,7 @@ AC_SUBST(PLATFORMDEP)
 
 AC_MSG_CHECKING([whether to compile timeloop])
 case "$host" in
-  *-*-cygwin*|*-*-mingw*)
+  *-*-cygwin*|*-*-mingw*|*-*-minix)
     enable_timeloop=no
     ;;
   *)
--- glib-2.8.6.000/glib/gfileutils.c	2005-08-10 06:07:47.000000000 +0200
+++ glib-2.8.6/glib/gfileutils.c	2006-05-21 19:32:29.000000000 +0200
@@ -924,7 +924,8 @@ static gboolean
 set_umask_permissions (int	     fd,
 		       GError      **err)
 {
-#ifdef G_OS_WIN32
+/* Minix doesn't support fchmod */
+#if defined G_OS_WIN32 || defined _MINIX
 
   return TRUE;
 


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