diff --git a/libs/libc/unistd/lib_getpgrp.c b/libs/libc/unistd/lib_getpgrp.c index 2fb8d8c7d3..fbc7ecc459 100644 --- a/libs/libc/unistd/lib_getpgrp.c +++ b/libs/libc/unistd/lib_getpgrp.c @@ -24,6 +24,8 @@ #include +#include + /**************************************************************************** * Public Functions ****************************************************************************/ @@ -44,5 +46,5 @@ pid_t getpgrp(void) { - return getpid(); + return _SCHED_GETPID(); }