Skip to contentSkip to conversation

um: fix missing include with glibc 2.16

PATCH New Vianney le Clément de Saint-Marcq 1 participant 1 message Aug 2, 2012 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 um: fix missing include with glibc 2.16

The POSIX manpage for getrlimit(3) requires sys/resource.h to be included. This header used to be included by sys/wait.h in glibc. As of glibc 2.16 however, this is not the case anymore, thus breaking the compilation.

---
 arch/um/os-Linux/start_up.c | 1 +
 1 file changed, 1 insertion(+)
arch/um/os-Linux/start_up.c +1 -0
index 425162e..67704ab 100644
@@ -13,6 +13,7 @@
 #include <signal.h>
 #include <string.h>
 #include <sys/mman.h>
+#include <sys/resource.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
 #include <asm/unistd.h>
Signature · 13 lines
1.7.11.4


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel