diff options
Diffstat (limited to 'mcon/U/d_getpgrp.U')
-rw-r--r-- | mcon/U/d_getpgrp.U | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mcon/U/d_getpgrp.U b/mcon/U/d_getpgrp.U index c4d6d01..bc5f5d2 100644 --- a/mcon/U/d_getpgrp.U +++ b/mcon/U/d_getpgrp.U @@ -1,12 +1,12 @@ -?RCS: $Id: d_getpgrp.U,v 3.0.1.1 1997/02/28 15:34:28 ram Exp $ +?RCS: $Id$ ?RCS: -?RCS: Copyright (c) 1991-1993, Raphael Manfredi +?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi ?RCS: ?RCS: You may redistribute only under the terms of the Artistic Licence, ?RCS: as specified in the README file that comes with the distribution. ?RCS: You may reuse parts of this distribution only within the terms of ?RCS: that same Artistic Licence; a copy of which may be found at the root -?RCS: of the source tree for dist 3.0. +?RCS: of the source tree for dist 4.0. ?RCS: ?RCS: $Log: d_getpgrp.U,v $ ?RCS: Revision 3.0.1.1 1997/02/28 15:34:28 ram @@ -37,6 +37,7 @@ ?H:#$d_getpgrp HAS_GETPGRP /**/ ?H:#$d_bsdgetpgrp USE_BSD_GETPGRP /**/ ?H:. +?F:!set !set.c ?T:xxx ?LINT:set d_getpgrp d_bsdgetpgrp : see if getpgrp exists @@ -54,7 +55,7 @@ case "$d_getpgrp" in #ifdef I_UNISTD # include <unistd.h> #endif -main() +int main() { if (getuid() == 0) { printf("(I see you are running Configure as super-user...)\n"); @@ -70,7 +71,9 @@ main() exit(1); } EOP - if $cc -DTRY_BSD_PGRP $ccflags $ldflags -o set set.c $libs >/dev/null 2>&1 && ./set; then + if $cc -DTRY_BSD_PGRP $ccflags $ldflags -o set set.c $libs >/dev/null 2>&1 + && ./set + then echo "You have to use getpgrp(pid) instead of getpgrp()." >&4 val="$define" elif $cc $ccflags $ldflags -o set set.c $libs >/dev/null 2>&1 && ./set; then |