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	Wed Dec 26 16:23:54 2007 +0100
+++ b/lib/progreloc.c	Wed Dec 26 16:25:28 2007 +0100
@@ -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