X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Frelocwrapper.c;h=54228965aa8fbe5309133c5083f63d83e19a48fe;hb=b65bfcd7ba0be84de3d96f22103103f21679a721;hp=d3980dd07d2ea590610ed85ae283b816b2982e3e;hpb=050d87a67621eeeea383949d33116496a353cf39;p=gnulib.git diff --git a/lib/relocwrapper.c b/lib/relocwrapper.c index d3980dd07..54228965a 100644 --- a/lib/relocwrapper.c +++ b/lib/relocwrapper.c @@ -1,5 +1,5 @@ /* Relocating wrapper program. - Copyright (C) 2003, 2005-2007, 2009-2010 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2007, 2009-2011 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -20,14 +20,15 @@ -> progname -> progreloc -> areadlink - -> readlink + -> careadlinkat + -> allocator + -> readlink -> canonicalize-lgpl -> malloca -> readlink -> relocatable -> setenv -> malloca - -> strerror -> c-ctype Macros that need to be set while compiling this file: @@ -43,6 +44,7 @@ libc functions, no gettext(), no error(), no xmalloc(), no xsetenv(). */ +#define _GL_USE_STDLIB_ALLOC 1 #include #include @@ -58,7 +60,6 @@ /* Use the system functions, not the gnulib overrides in this file. */ #undef fprintf -#undef malloc /* Return a copy of the filename, with an extra ".bin" at the end. More generally, it replaces "${EXEEXT}" at the end with ".bin${EXEEXT}". */