Diff

Differences From Artifact [c338a964f0]:

To Artifact [9b3f679ed5]:


     4      4   
     5      5   cd "${headers_dir}" || exit 1
     6      6   
     7      7   # Android header fix-ups
     8      8   ## Do not abort compilation at header include time
     9      9   if grep '^#error "No function renaming possible"' sys/cdefs.h >/dev/null 2>/dev/null; then
    10     10   	awk '
    11         -/#error "No function renaming possible"/{
           11  +/^#error "No function renaming possible"/{
    12     12   	print "#define __RENAME(x) no renaming on this platform"
    13     13   	next
    14     14   }
    15     15   {print}
           16  +
           17  +/^#warning /{ next }
    16     18   	' sys/cdefs.h > sys/cdefs.h.new
    17     19   	cat sys/cdefs.h.new > sys/cdefs.h
    18     20   	rm -f sys/cdefs.h.new
    19     21   fi
    20     22   
    21     23   ## loff_t depends on __GNUC__ for some reason
    22     24   if awk -v retval=1 '/__GNUC__/{ getline; if ($0 ~ /__kernel_loff_t/) {retval=0} } END{exit retval}' asm/posix_types.h >/dev/null 2>/dev/null; then