openrisc / or1ksim

The OpenRISC 1000 architectural simulator
GNU General Public License v3.0
69 stars 43 forks source link

Fix build with musl libc #18

Closed smaeul closed 2 years ago

smaeul commented 2 years ago

Use poll.h instead of sys/poll.h, or else musl warns.

Include Linux headers last, after all libc headers, so the libc headers can suppress duplicate definitions from the Linux headers.

Signed-off-by: Samuel Holland samuel@sholland.org

stffrdhrn commented 2 years ago

I tested this with x86 and glibc it works fine.

juliusbaxter commented 2 years ago

LGTM. If Stafford approves I'm happy. 👍