27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
rm -f asm/posix_types.h.new
fi
# Busted wrapper fix-up
if grep '__STDC_HOSTED__' stdint.h >/dev/null 2>/dev/null && grep '_GCC_WRAP_STDINT_H' stdint.h >/dev/null 2>/dev/null; then
echo '#include_next <stdint.h>' > stdint.h
fi
# MUSL libc expects GCC
if grep ' __builtin_va_list ' bits/alltypes.h >/dev/null 2>/dev/null; then
sed 's@ __builtin_va_list @ char * @' bits/alltypes.h > bits/alltypes.h.new
cat bits/alltypes.h.new > bits/alltypes.h
rm -f bits/alltypes.h.new
fi
|
>
>
>
>
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
rm -f asm/posix_types.h.new
fi
# Busted wrapper fix-up
if grep '__STDC_HOSTED__' stdint.h >/dev/null 2>/dev/null && grep '_GCC_WRAP_STDINT_H' stdint.h >/dev/null 2>/dev/null; then
echo '#include_next <stdint.h>' > stdint.h
fi
if grep '__CLANG_LIMITS_H' limits.h >/dev/null 2>/dev/null; then
echo '#include_next <limits.h>' > limits.h
fi
# MUSL libc expects GCC
if grep ' __builtin_va_list ' bits/alltypes.h >/dev/null 2>/dev/null; then
sed 's@ __builtin_va_list @ char * @' bits/alltypes.h > bits/alltypes.h.new
cat bits/alltypes.h.new > bits/alltypes.h
rm -f bits/alltypes.h.new
fi
|