]> The Tcpdump Group git mirrors - tcpdump/commitdiff
netdissect-stdinc: get rid of an extra definition of strdup.
authorGuy Harris <[email protected]>
Mon, 9 Sep 2024 22:09:01 +0000 (15:09 -0700)
committerGuy Harris <[email protected]>
Tue, 10 Sep 2024 02:41:22 +0000 (19:41 -0700)
We first unconditionally define it, and then later only define it if
it's already defined.  Microsoft defines it for us, but has deprecated
that definition because it pollutes the ISO C namespace with a POSIXism;
try just doing the conditional definition.

netdissect-stdinc.h

index baf5dd8fd3a3c69cbc25d43d70734565ff0acb1e..adb0b4cbc5f859f421595c21716388b1446d881e 100644 (file)
    */
   #define isatty _isatty
   #define stat _stat
-  #define strdup _strdup
   #define open _open
   #define read _read
   #define close _close