From ac0ee614d65c5dcd22ee911f969e1a5b7c50bad4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 5 Jul 1997 08:25:58 +0000 Subject: [PATCH] Redefine/undef getusershell around inclusion of (via system.h) so Cray's int-returning prototype doesn't conflict with our char*-returning one. --- src/su.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/su.c b/src/su.c index 96b47552d..26c65fe7b 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 -- 2.34.1