Fix compile with musl libc

Dmitry V. Levin ldv at altlinux.org
Mon Sep 29 23:54:39 UTC 2014


On Sun, Sep 28, 2014 at 02:44:58PM +0100, Steven Honeyman wrote:
> Using the latest git sources for musl libc and strace, there's just
> one thing missing preventing it from working "out of the box".
> To fix this. would it be possible to add the sys/sysinfo.h header in, as below:
> 
> --- a/strace-4.9/resource.c
> +++ b/strace-4.9/resource.c
> @@ -302,6 +302,8 @@
>  }
>  #endif /* ALPHA */
> 
> +#include <sys/sysinfo.h>
> +
>  int
>  sys_sysinfo(struct tcb *tcp)
>  {
> 
> 
> With that in place, it works fine.

Thanks, I've pushed this, and enhanced sysinfo decoding a bit.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140930/cb10132f/attachment.bin>


More information about the Strace-devel mailing list