From: SATOH Fumiyasu Date: Tue, 3 Nov 2009 09:43:31 +0000 (+0100) Subject: Portability: Check if fchown() and fchgrp() exist by configure. X-Git-Tag: cronie1.4.3~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2508075c07cd7989ea8e9ebfc04948748ed2b22f;p=cronie Portability: Check if fchown() and fchgrp() exist by configure. Signed-off-by: Marcela Mašláňová --- 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