diff --git a/sysdeps/unix/sysv/sysv4/setpgid.c b/sysdeps/unix/sysv/sysv4/setpgid.c index b9266a4b9a..4237a0b3c3 100644 --- a/sysdeps/unix/sysv/sysv4/setpgid.c +++ b/sysdeps/unix/sysv/sysv4/setpgid.c @@ -20,7 +20,7 @@ Cambridge, MA 02139, USA. */ #include #include -extern int __sco_pgrp __P ((int type, ...)); +extern int __pgrpsys __P ((int type, ...)); /* Set the process group ID of the process matching PID to PGID. If PID is zero, the current process's process group ID is set. @@ -28,5 +28,5 @@ extern int __sco_pgrp __P ((int type, ...)); int DEFUN(__setpgrp, (pid, pgid), int pid AND int pgid) { - return __sco_pgrp (1, pid, pgid); + return __pgrpsys (5, pid, pgid); }