about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-08-15 17:02:22 -0700
committerRoland McGrath <roland@hack.frob.com>2012-08-15 17:02:22 -0700
commit176790a7341221ae1681ca3aa44ba1e928f789e3 (patch)
tree97355ce165e372cf7fb0684521349709d8df8aae
parent309becf120640bb0fdd1a16e65996c23d0542590 (diff)
downloadglibc-176790a7341221ae1681ca3aa44ba1e928f789e3.tar.gz
glibc-176790a7341221ae1681ca3aa44ba1e928f789e3.tar.xz
glibc-176790a7341221ae1681ca3aa44ba1e928f789e3.zip
Add a missing #include to dl-sym.c.
-rw-r--r--ChangeLog2
-rw-r--r--elf/dl-sym.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3f7759e10c..004eb836a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2012-08-15  Roland McGrath  <roland@hack.frob.com>
 
+	* elf/dl-sym.c: Include <stdlib.h>.
+
 	* posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
 	constants, which avoids warnings in 32-bit builds.
 
diff --git a/elf/dl-sym.c b/elf/dl-sym.c
index 1e7ad22583..6480f2359c 100644
--- a/elf/dl-sym.c
+++ b/elf/dl-sym.c
@@ -1,5 +1,5 @@
 /* Look up a symbol in a shared object loaded by `dlopen'.
-   Copyright (C) 1999-2002,2004,2006,2007,2009 Free Software Foundation, Inc.
+   Copyright (C) 1999-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -19,6 +19,7 @@
 #include <assert.h>
 #include <stddef.h>
 #include <setjmp.h>
+#include <stdlib.h>
 #include <libintl.h>
 
 #include <dlfcn.h>