aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorMarco Vanotti <mvanotti@google.com>2019-06-13 14:29:36 -0700
committerDmitry Vyukov <dvyukov@google.com>2019-07-16 16:34:29 +0200
commit1472562444e21fce00b6629e89b31eb3510b69cf (patch)
tree6af0352f55ba2c2e699be1cf9dced1ae765d080d /sys
parentde59bed3f824e5b92f85227838fc9e8167bbbd6d (diff)
sys/syz-extract: define __GLIBC_USE if not defined.
When I try to run `make extract` for fuchsia, the clang compiler complains that __GLIBC_USE is undefined. This CL just defines it to be an always false function-like macro if it was not defined.
Diffstat (limited to 'sys')
-rw-r--r--sys/syz-extract/fetch.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/syz-extract/fetch.go b/sys/syz-extract/fetch.go
index bb0c8b54b..ecd529970 100644
--- a/sys/syz-extract/fetch.go
+++ b/sys/syz-extract/fetch.go
@@ -122,6 +122,10 @@ func compile(cc string, args []string, data *CompileData) (bin string, out []byt
var srcTemplate = template.Must(template.New("").Parse(`
#define __asm__(...)
+#ifndef __GLIBC_USE
+# define __GLIBC_USE(X) 0
+#endif
+
{{range $incl := $.Includes}}
#include <{{$incl}}>
{{end}}