From 2508075c07cd7989ea8e9ebfc04948748ed2b22f Mon Sep 17 00:00:00 2001 From: SATOH Fumiyasu Date: Tue, 3 Nov 2009 10:43:31 +0100 Subject: [PATCH] Portability: Check if fchown() and fchgrp() exist by configure. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcela Mašláňová --- configure.ac | 2 ++ src/externs.h | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 72e234e..b99cbb9 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,8 @@ AC_CHECK_FUNCS( \ fcntl \ lockf \ flock \ + fchown \ + fchgrp \ ) dnl Checks for typedefs, structures, and compiler characteristics. diff --git a/src/externs.h b/src/externs.h index 225cf54..20fea0a 100644 --- a/src/externs.h +++ b/src/externs.h @@ -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 -- 2.40.0