Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 22 Aug 2012 23:20:22 -0700 (PDT)
Subject: [PATCH 2/1] Problem is static inline

>> I've been trying to get musl compatability patches for libuv merged
>> upstream, and I have it building, but there's one sticking point:
>> Upstream insists on using --std=c89 (I guess for portability to other
>> platforms).
>> This makes GCC choke on "long" in <bits/syscall.h>.
> I tried fixing it, and ended up finding that the issue was the "static
> inline" in the header.
> For future reference:
> sed -e 's/static inline/#if __STDC_VERSION__ >=
> 199901L\ninline\n#endif\nstatic/g' -i <filename>
> is what I used.
> HTH,
> Isaac Dunham

I grepped and found that there were three other headers in each arch that
shared the same problem.
Here's the patch.

Isaac Dunham
View attachment "inline2.diff" of type "text/plain" (21363 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.