ITS#9354 - Fix usage of signal to be portable

This commit is contained in:
Quanah Gibson-Mount 2020-11-02 16:21:48 +00:00
parent 9187cca4b1
commit bfeaec664f

View file

@ -21,6 +21,7 @@
#include <stdio.h> #include <stdio.h>
#include "ac/signal.h"
#include "ac/stdlib.h" #include "ac/stdlib.h"
#include "ac/time.h" #include "ac/time.h"
@ -597,7 +598,9 @@ main( int argc, char **argv )
} }
tester_config_finish( config ); tester_config_finish( config );
signal(SIGPIPE, SIG_IGN); #ifdef SIGPIPE
(void) SIGNAL(SIGPIPE, SIG_IGN);
#endif
/* don't clear the screen if debug is enabled */ /* don't clear the screen if debug is enabled */
if (debug) if (debug)