Redefine/undef getusershell around inclusion of <unistd.h>

(via system.h) so Cray's int-returning prototype doesn't conflict
with our char*-returning one.
This commit is contained in:
Jim Meyering 1997-07-05 08:25:58 +00:00
parent 8e07d01501
commit 132449e4da
1 changed files with 8 additions and 0 deletions

View File

@ -75,8 +75,16 @@
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
/* Hide any system prototype for getusershell.
This is necessary because some Cray systems have a conflicting
prototype (returning `int') in <unistd.h>. */
#define getusershell _getusershell_sys_proto_
#include "system.h"
#undef getusershell
#if HAVE_SYSLOG_H && HAVE_SYSLOG
# include <syslog.h>
#else