summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r--openbsd-compat/bsd-misc.c2
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)
238pid_t 238pid_t
239getpgid(pid_t pid) 239getpgid(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)