diff options
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r-- | openbsd-compat/bsd-misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index a2f750558..f7187daf8 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c | |||
@@ -238,7 +238,7 @@ isblank(int c) | |||
238 | pid_t | 238 | pid_t |
239 | getpgid(pid_t pid) | 239 | getpgid(pid_t pid) |
240 | { | 240 | { |
241 | #if defined(HAVE_GETPGRP) && !defined(GETPGRP_VOID) | 241 | #if defined(HAVE_GETPGRP) && !defined(GETPGRP_VOID) && GETPGRP_VOID == 0 |
242 | return getpgrp(pid); | 242 | return getpgrp(pid); |
243 | #elif defined(HAVE_GETPGRP) | 243 | #elif defined(HAVE_GETPGRP) |
244 | if (pid == 0) | 244 | if (pid == 0) |