mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
setpgrp cmake check: use #if, not #if defined.
I still haven't got out of the habit of doing this the autotools way, which doesn't work in cmake. cmake's HAVE_FOO variables are always defined, and they take values 0 or 1, so testing them with 'defined' will return the wrong value.
This commit is contained in:
parent
fda41e1990
commit
ae2c0d40ae
@ -330,9 +330,9 @@ void pageant_fork_and_print_env(bool retain_tty)
|
|||||||
/* Get out of our previous process group, to avoid being
|
/* Get out of our previous process group, to avoid being
|
||||||
* blasted by passing signals. But keep our controlling tty,
|
* blasted by passing signals. But keep our controlling tty,
|
||||||
* so we can keep checking to see if we still have one. */
|
* so we can keep checking to see if we still have one. */
|
||||||
#if defined HAVE_NULLARY_SETPGRP
|
#if HAVE_NULLARY_SETPGRP
|
||||||
setpgrp();
|
setpgrp();
|
||||||
#elif defined HAVE_BINARY_SETPGRP
|
#elif HAVE_BINARY_SETPGRP
|
||||||
setpgrp(0, 0);
|
setpgrp(0, 0);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user