From 6493389a8c46fc893baedbec73fae2e34fcdcd7a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 20 Oct 1994 21:56:42 +0000 Subject: distinguish between getpgrp and setpgrp arg requirements --- Modules/posixmodule.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 59e27a7..c2678eb 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -816,11 +816,11 @@ posix_setpgrp(self, args) { if (!getnoarg(args)) return NULL; -#ifdef GETPGRP_HAVE_ARG +#ifdef SETPGRP_HAVE_ARG if (setpgrp(0, 0) < 0) -#else /* GETPGRP_HAVE_ARG */ +#else /* SETPGRP_HAVE_ARG */ if (setpgrp() < 0) -#endif /* GETPGRP_HAVE_ARG */ +#endif /* SETPGRP_HAVE_ARG */ return posix_error(); INCREF(None); return None; -- cgit v0.12