only use siginterrupt() if it really exists on the platform
This commit is contained in:
@@ -537,6 +537,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#ifdef HAVE_SIGNAL
|
#ifdef HAVE_SIGNAL
|
||||||
signal(SIGPIPE, sigpipe_handler);
|
signal(SIGPIPE, sigpipe_handler);
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_SIGINTERRUPT
|
||||||
siginterrupt(SIGPIPE, 1);
|
siginterrupt(SIGPIPE, 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user