diff --git a/Makefile.in b/Makefile.in index 57d6a5c77..fceb9165c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -120,7 +120,7 @@ TESTBOUND_OBJ=$(addprefix $(BUILD),$(TESTBOUND_SRC:.c=.lo)) $(COMPAT_OBJ) LOCKVERIFY_SRC=testcode/lock_verify.c smallapp/worker_cb.c $(COMMON_SRC) LOCKVERIFY_OBJ=$(addprefix $(BUILD),$(LOCKVERIFY_SRC:.c=.lo)) $(COMPAT_OBJ) PETAL_SRC=testcode/petal.c -PETAL_OBJ=$(addprefix $(BUILD),$(PETAL_SRC:.c=.lo)) $(COMPAT_OBJ) +PETAL_OBJ=$(addprefix $(BUILD),$(PETAL_SRC:.c=.lo)) $(filter-out $(BUILD)compat/ctime_r.lo, $(COMPAT_OBJ)) PKTVIEW_SRC=testcode/pktview.c testcode/readhex.c smallapp/worker_cb.c \ $(COMMON_SRC) PKTVIEW_OBJ=$(addprefix $(BUILD),$(PKTVIEW_SRC:.c=.lo)) $(COMPAT_OBJ) diff --git a/testcode/petal.c b/testcode/petal.c index 2e6f1c53e..5d6e11e1d 100644 --- a/testcode/petal.c +++ b/testcode/petal.c @@ -566,7 +566,9 @@ int main(int argc, char* argv[]) if(argc != 0) usage(); +#ifdef SIGPIPE (void)signal(SIGPIPE, SIG_IGN); +#endif ERR_load_crypto_strings(); ERR_load_SSL_strings(); OpenSSL_add_all_algorithms();