linux-um archives
 help / color / mirror / Atom feed
From: "Vianney le Clément de Saint-Marcq" <vleclement@gmail.com>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: "Vianney le Clément de Saint-Marcq" <vleclement@gmail.com>
Subject: [uml-devel] [PATCH] um: fix missing include with glibc 2.16
Date: Thu,  2 Aug 2012 09:22:24 +0200	[thread overview]
Message-ID: <1343892144-3800-1-git-send-email-vleclement@gmail.com> (raw)

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.

Signed-off-by: Vianney le Clément de Saint-Marcq <vleclement@gmail.com>
---
 arch/um/os-Linux/start_up.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c
index 425162e..67704ab 100644
--- a/arch/um/os-Linux/start_up.c
+++ b/arch/um/os-Linux/start_up.c
@@ -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>
-- 
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

             reply	other threads:[~2012-08-02  7:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-02  7:22 Vianney le Clément de Saint-Marcq [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-07-31  8:28 [uml-devel] [PATCH] um: fix missing include with glibc 2.16 Vianney le Clément de Saint-Marcq
2012-08-01 22:51 ` Richard Weinberger
2012-08-02  6:53   ` Vianney le Clément
2012-08-02  7:42     ` richard -rw- weinberger
2012-08-03 13:51       ` Vianney le Clément
2012-08-04 22:54         ` richard -rw- weinberger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1343892144-3800-1-git-send-email-vleclement@gmail.com \
    --to=vleclement@gmail.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox