From 1472562444e21fce00b6629e89b31eb3510b69cf Mon Sep 17 00:00:00 2001 From: Marco Vanotti Date: Thu, 13 Jun 2019 14:29:36 -0700 Subject: 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. --- sys/syz-extract/fetch.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys') 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}} -- cgit mrf-deployment