1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

freebsd: sai build adaptations

This commit is contained in:
Andy Green 2020-08-09 08:09:46 +01:00
parent e3b34d3e08
commit 2edd83dac1
2 changed files with 8 additions and 0 deletions

View file

@ -147,6 +147,10 @@ typedef unsigned long long lws_intptr_t;
#endif
#endif
#if defined(__FreeBSD__)
#include <sys/signal.h>
#endif
#if defined(__GNUC__)
/* warn_unused_result attribute only supported by GCC 3.4 or later */

View file

@ -435,7 +435,11 @@ lws_spawn_piped(const struct lws_spawn_piped_info *i)
if (lsp->info.disable_ctrlc)
/* stops non-daemonized main processess getting SIGINT
* from TTY */
#if defined(__FreeBSD__)
setpgid(0, 0);
#else
setpgrp();
#endif
if (lsp->child_pid) {