From 759f3de8db3ec94bbbd1ba6038763279536ff735 Mon Sep 17 00:00:00 2001 From: Romero Malaquias Date: Sun, 13 Dec 2015 18:43:08 -0300 Subject: [PATCH] Avoiding conditional directives that break statements --- tcpdump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tcpdump.c b/tcpdump.c index 521196ba..4f42f4b2 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -1888,10 +1888,11 @@ static void compress_savefile(const char *filename) { # ifdef HAVE_FORK - if (fork()) + #define test_fork fork() # else - if (vfork()) + #define test_fork vfork() # endif + if(test_fork) return; /* * Set to lowest priority so that this doesn't disturb the capture -- 2.39.5