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:11:38 -0700 (PDT)
From: idunham@...abit.com
To: musl@...ts.openwall.com
Subject: [PATCH] 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
View attachment "inline.diff" of type "text/plain" (11417 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.