1#!/bin/sh 2# Get Clang's default includes on this system, as opposed to those seen by 3# '-target bpf'. This fixes "missing" files on some architectures/distros, 4# such as asm/byteorder.h, asm/socket.h, asm/sockios.h, sys/cdefs.h etc. 5# 6# Use '-idirafter': Don't interfere with include mechanics except where the 7# build would have failed anyways. 8$CLANG -v -E - </dev/null 2>&1 \ 9 | sed -n '/<...> search starts here:/,/End of search list./{ s| \(/.*\)|-idirafter \1|p }' 10