sys/syz-extract define GENOFFSET when processing FreeBSD sources

This avoids the inclusion of offset.inc files.
This commit is contained in:
Michael Tuexen 2019-04-30 09:29:56 +02:00 committed by Michael Tüxen
parent b78c475a45
commit a46bda82a4

View File

@ -40,6 +40,7 @@ func (*freebsd) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]ui
args := []string{
"-fmessage-length=0",
"-nostdinc",
"-DGENOFFSET",
"-D_KERNEL",
"-D__BSD_VISIBLE=1",
"-I", filepath.Join(arch.sourceDir, "sys"),