From: Thibault Godouet Date: Sat, 12 Mar 2005 12:39:46 +0000 (+0000) Subject: better support of HP-UX : if seteuid() does not exist, use setresuid() instead X-Git-Tag: ver2_9_6~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56834cdf6e89e1cd03cb19f1e196818cabe25deb;p=thirdparty%2Ffcron.git better support of HP-UX : if seteuid() does not exist, use setresuid() instead --- diff --git a/global.h b/global.h index 9f0393e..a2703e7 100644 --- a/global.h +++ b/global.h @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: global.h,v 1.43 2004-11-13 19:42:57 thib Exp $ */ + /* $Id: global.h,v 1.44 2005-03-12 12:39:46 thib Exp $ */ /* @@ -127,6 +127,14 @@ #define STD 0 /* macros */ +#ifndef HAVE_SETEUID +#define seteuid(arg) setresuid(-1,(arg),-1) +#endif + +#ifndef HAVE_SETEGID +#define setegid(arg) setresgid(-1,(arg),-1) +#endif + #define Alloc(PTR, TYPE) \ if( (PTR = calloc(1, sizeof(TYPE))) == NULL ) \ die_e("Could not calloc.");