summaryrefslogtreecommitdiff
blob: 8efe3bf8142d3e51df40d381d15434e567acbf1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Don't include our own declaration of setpgrp if the system defines prototypes
for SysV functions (like setpgrp()).  Not sure if this is the Right fix or not.
--- tcsh-6.12.00/sh.h	2004-02-10 11:35:44.000000000 -0500
+++ tcsh-6.12.00/sh.h	2004-02-10 11:35:40.000000000 -0500
@@ -474,7 +474,9 @@
 extern pid_t getpgrp __P((void));
 #  endif	/* BSD || SUNOS4 || IRISD || DGUX */
 # endif /* POSIX */
+#ifndef _SVID_SOURCE
 extern pid_t setpgrp __P((pid_t, pid_t));
+#endif
 #endif /* !WINNT_NATIVE */
 
 typedef sigret_t (*signalfun_t) __P((int));