quilt-dev
[Top][All Lists]
Advanced

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

[Quilt-dev] [patch 4/5] port of Joe's backup-files.c over my nftw/ftw/ft


From: Gary V. Vaughan
Subject: [Quilt-dev] [patch 4/5] port of Joe's backup-files.c over my nftw/ftw/fts replacement
Date: Thu, 15 Sep 2005 16:14:34 +0100
User-agent: Mozilla Thunderbird 1.0 (X11/20050305)

Ignore missing fchmod on platforms without it.

 configure.ac       |    1 +
 lib/backup-files.c |    4 ++++
 2 files changed, 5 insertions(+)

Index: quilt-HEAD/configure.ac
===================================================================
--- quilt-HEAD.orig/configure.ac
+++ quilt-HEAD/configure.ac
@@ -10,6 +10,7 @@ AC_SUBST(PACKAGE_RELEASE)
 dnl Setup for backup-files compilation
 AC_HEADER_STDC
 AC_CHECK_HEADERS([alloca.h])
+AC_CHECK_FUNCS([fchmod])
 AC_CHECK_FUNCS([mkstemp mktemp], break)
 AC_CHECK_FUNCS([mkdir])
 AC_CHECK_FUNCS([rmdir])
Index: quilt-HEAD/lib/backup-files.c
===================================================================
--- quilt-HEAD.orig/lib/backup-files.c
+++ quilt-HEAD/lib/backup-files.c
@@ -56,6 +56,10 @@
 # define mkstemp(x) creat(mktemp(x), 0)
 #endif

+#if !defined(HAVE_FCHMOD)
+inline int fchmod (int fd, mode_t mode) { return 0; }
+#endif
+
 const char *progname;

 enum { what_noop, what_backup, what_restore, what_remove };

--
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]