Forbid strtok(3)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12094
This commit is contained in:
parent
a0d7e27a13
commit
a1ca39655b
@ -53,6 +53,7 @@ endif
|
|||||||
if BUILD_FREEBSD
|
if BUILD_FREEBSD
|
||||||
AM_CPPFLAGS += -DTEXT_DOMAIN=\"zfs-freebsd-user\"
|
AM_CPPFLAGS += -DTEXT_DOMAIN=\"zfs-freebsd-user\"
|
||||||
endif
|
endif
|
||||||
|
AM_CPPFLAGS += -D"strtok(...)=strtok(__VA_ARGS__) __attribute__((deprecated(\"Use strtok_r(3) instead!\")))"
|
||||||
|
|
||||||
AM_LDFLAGS = $(DEBUG_LDFLAGS)
|
AM_LDFLAGS = $(DEBUG_LDFLAGS)
|
||||||
AM_LDFLAGS += $(ASAN_LDFLAGS)
|
AM_LDFLAGS += $(ASAN_LDFLAGS)
|
||||||
|
Loading…
Reference in New Issue
Block a user