aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@fh-muenster.de>2019-04-30 09:29:56 +0200
committerMichael Tüxen <tuexen@fh-muenster.de>2019-04-30 17:55:00 +0200
commita46bda82a423f6ecc27da6cccf07d7e0f7692d8c (patch)
tree61ed07719d0eb77f7e218eaeebd170f2a9d762d4 /sys
parentb78c475a45307efae6f05642b56ac2c20649a9e9 (diff)
sys/syz-extract define GENOFFSET when processing FreeBSD sources
This avoids the inclusion of offset.inc files.
Diffstat (limited to 'sys')
-rw-r--r--sys/syz-extract/freebsd.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/syz-extract/freebsd.go b/sys/syz-extract/freebsd.go
index 524fd7168..19ca0e11c 100644
--- a/sys/syz-extract/freebsd.go
+++ b/sys/syz-extract/freebsd.go
@@ -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"),