summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/su.c8
1 files changed, 8 insertions, 0 deletions
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 <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