On Fri, Sep 26, 2008 at 06:54:12PM +0100, James Westby wrote:
> I believe this is fixed in experimental, as upstream has changed
> this area of the code, but it may be worth double checking that.

Relevant upstream patch below for the record, though all relevant ifdefs
have been removed from the rest of the code.

> I would appreciate any suggested improvements for the patch,
> and also checking that I did not miss any definitions that should be
> added.

I'll try to take a close look soon.

Index: configure.ac
===================================================================
RCS file: /sources/cpio/cpio/configure.ac,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- configure.ac        8 Feb 2008 09:28:50 -0000       1.22
+++ configure.ac        8 Feb 2008 10:25:05 -0000       1.23
@@ -44,7 +44,9 @@
 AC_HEADER_STDC
 AC_HEADER_DIRENT
 
-AC_CHECK_FUNCS([fchmod fchown setmode])
+AC_CHECK_FUNCS([fchmod fchown])
+# This is needed for mingw build
+AC_CHECK_FUNCS([setmode getpwuid getpwnam getgrgid getgrnam pipe fork getuid 
geteuid])
 
 # gnulib modules
 gl_INIT
@@ -62,18 +64,7 @@
   no)  ;;
   esac])
 
-AC_CHECK_HEADERS(unistd.h stdlib.h string.h fcntl.h sys/io/trioctl.h utmp.h 
getopt.h locale.h libintl.h sys/wait.h utime.h locale.h process.h sys/ioctl.h)
-
-AC_MSG_CHECKING(for sys_errlist and sys_nerr)
-AC_TRY_RUN(
-extern char *sys_errlist[[]];
-extern int sys_nerr;
-main() { char *s = sys_errlist[[0]]; return 0; },
-        AC_DEFINE(HAVE_SYS_ERRLIST,1,
-                  [Define if your system has sys_errlist global variable])
-        AC_MSG_RESULT(yes),
-        AC_MSG_RESULT(no),
-        AC_MSG_RESULT(don't know))
+AC_CHECK_HEADERS([unistd.h stdlib.h string.h fcntl.h pwd.h grp.h 
sys/io/trioctl.h utmp.h getopt.h locale.h libintl.h sys/wait.h utime.h locale.h 
process.h sys/ioctl.h])
 
 AC_CHECK_DECLS([errno, getpwnam, getgrnam, getgrgid, strdup, strerror, getenv, 
atoi, exit], , , [
 #include <stdio.h>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to