mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-25 12:10:03 +00:00
- include <signal.h> (needed on *BSD)
- sa_restorer is avaible only on Linux git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@577 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
e60f3594e5
commit
4d3efcb965
@ -46,6 +46,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/signal.h>
|
||||
#include <signal.h>
|
||||
|
||||
#ifndef MPD_NO_IPV6
|
||||
#ifdef AF_INET6
|
||||
@ -215,7 +216,9 @@ mpd_Connection *mpd_newConnection(const char *host, int port,
|
||||
sapipe.sa_handler = mpd_signalHandler;
|
||||
// sapipe.sa_mask = 0;
|
||||
sapipe.sa_flags = 0;
|
||||
#ifdef __linux__
|
||||
sapipe.sa_restorer = NULL;
|
||||
#endif /* __linux__ */
|
||||
sigaction(SIGPIPE,&sapipe,NULL);
|
||||
|
||||
/* connect stuff */
|
||||
|
Loading…
Reference in New Issue
Block a user