From ef11bf40fdc66a337b26c40f02d0aa02faf63e38 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Fri, 8 Apr 2011 11:35:40 -0700
Subject: [PATCH] * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.

---
 ChangeLog         | 1 +
 lib/relocatable.c | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1a413bc06e..753536ee48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
 	* lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
 	* lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
 	* lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
+	* lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
 
 	careadlinkat: rename members to avoid problem
 	* lib/allocator.h (struct allocator): Rename members from
diff --git a/lib/relocatable.c b/lib/relocatable.c
index cbff85fa62..a7bbd99dca 100644
--- a/lib/relocatable.c
+++ b/lib/relocatable.c
@@ -25,6 +25,7 @@
 # define _GNU_SOURCE 1
 #endif
 
+#define _GL_USE_STDLIB_ALLOC 1
 #include <config.h>
 
 /* Specification.  */
@@ -86,9 +87,6 @@
 # define FILE_SYSTEM_PREFIX_LEN(P) 0
 #endif
 
-/* Use the system functions, not the gnulib overrides in this file.  */
-#undef malloc
-
 /* Original installation prefix.  */
 static char *orig_prefix;
 static size_t orig_prefix_len;
-- 
2.30.2