]> granicus.if.org Git - strace/commitdiff
Fix build with musl libc
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 29 Sep 2014 23:09:22 +0000 (23:09 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 29 Sep 2014 23:09:22 +0000 (23:09 +0000)
* resource.c: Include <sys/sysinfo.h> for struct sysinfo definition.

Reported-by: Steven Honeyman <stevenhoneyman@gmail.com>
resource.c

index 12e218f2a02a7672bba54ecf66021497f06cb9d7..8054c7bf90af3ae25331e1c31c3a6d3efe0fafab 100644 (file)
@@ -302,6 +302,8 @@ sys_osf_getrusage(struct tcb *tcp)
 }
 #endif /* ALPHA */
 
+#include <sys/sysinfo.h>
+
 int
 sys_sysinfo(struct tcb *tcp)
 {