summaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-01 20:45:17 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-01 20:45:17 +0530
commitace4acc8ace692f64051594afe47efb1135b3c29 (patch)
treece714ffad6ebfd5133e11004fa85de3e2fb92aae /nptl
parente5c74c633e3c92e6653931f6f1b17f955f7e2669 (diff)
downloadglibc-ace4acc8ace692f64051594afe47efb1135b3c29.tar.gz
Fix build warning
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog2
-rw-r--r--nptl/tst-oddstacklimit.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 39b91a8177..4beb77c43e 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,5 +1,7 @@
2013-03-01 Siddhesh Poyarekar <siddhesh@redhat.com>
+ * tst-oddstacklimit.c: Include stdlib.h.
+
* Makefile (tests): Add tst-pthread-stack-env.
(tst-pthread-stack-env-ENV): Set environment for test.
* nptl-init.c (set_default_stacksize): New function.
diff --git a/nptl/tst-oddstacklimit.c b/nptl/tst-oddstacklimit.c
index 2c7783f56f..49754fe48c 100644
--- a/nptl/tst-oddstacklimit.c
+++ b/nptl/tst-oddstacklimit.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <sys/resource.h>
#include <sys/wait.h>
+#include <stdlib.h>
/* This sets the stack resource limit to 1023kb, which is not a multiple
of the page size since every architecture's page size is > 1k. */