+2007-12-24 Bruno Haible <bruno@clisp.org>
+
+ Fix link error due to xalloc_die().
+ * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
+ of xreadlink.
+ * lib/relocwrapper.c: Update comments.
+ * build-aux/install-reloc: Remove xreadlink.c from file list.
+ * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
+ xreadlink.c.
+ Reported by Левашев Иван <octagram@bluebottle.com>.
+
2007-12-24 Bruno Haible <bruno@clisp.org>
Split setenv module into setenv and unsetenv. Get rid of setenv.h.
/* 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
# 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