From 132449e4daddd5452885d4807134aab7a7a6d377 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. --- login-utils/su.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/login-utils/su.c b/login-utils/su.c index 96b47552d..26c65fe7b 100644 --- a/login-utils/su.c +++ b/login-utils/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