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)
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif
- #define _BSD_SOURCE
+ /* Avoid redefining _BSD_SOURCE if it's already defined as for ex. 1 */
+ #ifndef _BSD_SOURCE
+ #define _BSD_SOURCE
+ #endif
#endif
#endif