mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Add cmake check for whether setpgrp takes arguments.
FreeBSD declares setpgrp() as taking two arguments, like Linux's setpgid(). Detect that at configure time and adjust the call in Pageant appropriately.
This commit is contained in:
@ -43,6 +43,8 @@
|
||||
#cmakedefine01 HAVE_CLOCK_MONOTONIC
|
||||
#cmakedefine01 HAVE_CLOCK_GETTIME
|
||||
#cmakedefine01 HAVE_SO_PEERCRED
|
||||
#cmakedefine01 HAVE_NULLARY_SETPGRP
|
||||
#cmakedefine01 HAVE_BINARY_SETPGRP
|
||||
#cmakedefine01 HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE
|
||||
#cmakedefine01 HAVE_PANGO_FONT_MAP_LIST_FAMILIES
|
||||
|
||||
|
@ -51,6 +51,21 @@ int main(int argc, char **argv) {
|
||||
cr.pid + cr.uid + cr.gid;
|
||||
}" HAVE_SO_PEERCRED)
|
||||
|
||||
check_c_source_compiles("
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
setpgrp();
|
||||
}" HAVE_NULLARY_SETPGRP)
|
||||
check_c_source_compiles("
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
setpgrp(0, 0);
|
||||
}" HAVE_BINARY_SETPGRP)
|
||||
|
||||
if(HAVE_GETADDRINFO AND PUTTY_IPV6)
|
||||
set(NO_IPV6 OFF)
|
||||
else()
|
||||
|
Reference in New Issue
Block a user