From: Jim Meyering Date: Sat, 5 Jul 1997 08:25:58 +0000 (+0000) Subject: Redefine/undef getusershell around inclusion of X-Git-Tag: SH-UTILS-1_16c~107 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=ac0ee614d65c5dcd22ee911f969e1a5b7c50bad4;p=thirdparty%2Fcoreutils.git Redefine/undef getusershell around inclusion of (via system.h) so Cray's int-returning prototype doesn't conflict with our char*-returning one. --- diff --git a/src/su.c b/src/su.c index 96b47552d8..26c65fe7bb 100644 --- a/src/su.c +++ b/src/su.c @@ -75,8 +75,16 @@ #include #include #include + +/* Hide any system prototype for getusershell. + This is necessary because some Cray systems have a conflicting + prototype (returning `int') in . */ +#define getusershell _getusershell_sys_proto_ + #include "system.h" +#undef getusershell + #if HAVE_SYSLOG_H && HAVE_SYSLOG # include #else