mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
fix compile on freebsd
This commit is contained in:
parent
2d3af919ba
commit
4edd58a744
@ -46,6 +46,11 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
|
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
#include <signal.h>
|
||||||
|
#include <paths.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#ifdef HAVE_OPENIPMI_H
|
#ifdef HAVE_OPENIPMI_H
|
||||||
@ -79,7 +84,7 @@ static void daemonize(void)
|
|||||||
#ifdef SIGHUP
|
#ifdef SIGHUP
|
||||||
sigemptyset(&sighup);
|
sigemptyset(&sighup);
|
||||||
sigaddset(&sighup, SIGHUP);
|
sigaddset(&sighup, SIGHUP);
|
||||||
if (sigprocmask(SIG_UNBLOCK, &sighup, nil) < 0)
|
if (sigprocmask(SIG_UNBLOCK, &sighup, NULL) < 0)
|
||||||
fprintf(stderr, "ERROR: could not unblock SIGHUP signal\n");
|
fprintf(stderr, "ERROR: could not unblock SIGHUP signal\n");
|
||||||
SIG_IGNORE(SIGHUP);
|
SIG_IGNORE(SIGHUP);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user