]> The Tcpdump Group git mirrors - tcpdump/commit
Fix a warning on Linux Alpine
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 2 Jan 2021 13:03:00 +0000 (14:03 +0100)
committerGuy Harris <[email protected]>
Mon, 4 Jan 2021 03:00:35 +0000 (19:00 -0800)
commitbec8d36bbdf60dd5dafb2bafbe3e34ecdcc8bfd3
treefaba94ed9aaa9c205ede97682196cfd653711d39
parenta89ba86fba989301d1cd6d5869c9725164656d80
Fix a warning on Linux Alpine

The warning was like:
In file included from ./netdissect-stdinc.h:42,
                 from ./fptype.c:36:
./ftmacros.h:116: warning: "_BSD_SOURCE" redefined
  116 |   #define _BSD_SOURCE
      |
In file included from /usr/include/stdio.h:8,
                 from /usr/include/fortify/stdio.h:22,
                 from ./fptype.c:34:
/usr/include/features.h:15: note: this is the location of the previous
  definition
   15 | #define _BSD_SOURCE 1
      |

(cherry picked from commit ac88cb08eb2ea344e0bb5524355caa9093ee89c4)
ftmacros.h