]> granicus.if.org Git - cronie/commitdiff
Portability: Check if fchown() and fchgrp() exist by configure.
authorSATOH Fumiyasu <fumiyas@osstech.co.jp>
Tue, 3 Nov 2009 09:43:31 +0000 (10:43 +0100)
committerMarcela Mašláňová <mmaslano@redhat.com>
Tue, 3 Nov 2009 09:43:31 +0000 (10:43 +0100)
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
configure.ac
src/externs.h

index 72e234ec24ec2acfddeb911c757255897b2b430a..b99cbb9596a30c29992ba49c6cfd616fefd081f7 100644 (file)
@@ -46,6 +46,8 @@ AC_CHECK_FUNCS( \
        fcntl \
        lockf \
        flock \
+       fchown \
+       fchgrp \
 )
 
 dnl Checks for typedefs, structures, and compiler characteristics.
index 225cf54cb582189ebcad34823bc6b4554767ff30..20fea0a9ed7514887fc699fab2e2cf9436f34976 100644 (file)
@@ -81,11 +81,6 @@ extern char *tzname[2];
 #endif
 #define TZONE(tm) tzname[(tm).tm_isdst]
 
-#if (defined(BSD)) && (BSD >= 198606) || defined(__linux)
-# define HAVE_FCHOWN
-# define HAVE_FCHMOD
-#endif
-
 #if (defined(BSD)) && (BSD >= 199103) || defined(__linux)
 # define HAVE_SAVED_UIDS
 #endif