]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Avoiding conditional directives that break statements 494/head
authorRomero Malaquias <[email protected]>
Sun, 13 Dec 2015 21:43:08 +0000 (18:43 -0300)
committerRomero Malaquias <[email protected]>
Sun, 13 Dec 2015 21:43:08 +0000 (18:43 -0300)
tcpdump.c

index 521196ba2da48d3ad20b9e5fe71e4bbbf448f3f6..4f42f4b2ca9428934fab48d483b5515b047d25c2 100644 (file)
--- 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