Mercurial > hg > octave-shane > gnulib-hg
diff lib/progreloc.c @ 9547:c3d038b0b4d3
Fix link error in relocatability wrappers, due to xalloc_die().
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 26 Dec 2007 16:25:28 +0100 |
parents | bbbbbf4cd1c5 |
children | 8cae100b8cd1 |
line wrap: on
line diff
--- a/lib/progreloc.c +++ b/lib/progreloc.c @@ -1,5 +1,5 @@ /* Provide relocatable programs. - Copyright (C) 2003-2006 Free Software Foundation, Inc. + Copyright (C) 2003-2007 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2003. This program is free software: you can redistribute it and/or modify @@ -43,11 +43,17 @@ # include <windows.h> #endif -#include "xreadlink.h" #include "canonicalize.h" #include "relocatable.h" #ifdef NO_XMALLOC +# include "areadlink.h" +# define xreadlink areadlink +#else +# include "xreadlink.h" +#endif + +#ifdef NO_XMALLOC # define xmalloc malloc # define xstrdup strdup #else