diff options
author | Bruno Haible <bruno@clisp.org> | 2010-08-28 11:12:58 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-08-28 11:12:58 +0200 |
commit | 63d392e0dac335b021e73a1d44b9193e27d2f40e (patch) | |
tree | 3cad43955ec5f22f661dcb41bc9be2b5e451dfcb /lib/canonicalize-lgpl.c | |
parent | 8625f78125923c51d30996fb6f3cda1bdd19cd4a (diff) | |
download | gnulib-63d392e0dac335b021e73a1d44b9193e27d2f40e.tar.gz |
Avoid relocwrapper link errors due to gnulib replacement functions.
Diffstat (limited to 'lib/canonicalize-lgpl.c')
-rw-r--r-- | lib/canonicalize-lgpl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/canonicalize-lgpl.c b/lib/canonicalize-lgpl.c index c2164e07fe..3cf2d766e0 100644 --- a/lib/canonicalize-lgpl.c +++ b/lib/canonicalize-lgpl.c @@ -51,6 +51,12 @@ # include "pathmax.h" # include "malloca.h" # if HAVE_GETCWD +# if IN_RELOCWRAPPER + /* When building the relocatable program wrapper, use the system's getcwd + function, not the gnulib override, otherwise we would get a link error. + */ +# undef getcwd +# endif # ifdef VMS /* We want the directory in Unix syntax, not in VMS syntax. */ # define __getcwd(buf, max) getcwd (buf, max, 0) |