* lib/canonicalize-lgpl.c: Avoid an 'empty declaration' / 'extraneous
semicolon' warning with some compilers.

Signed-off-by: Andreas Gruenbacher <[email protected]>
---
 ChangeLog               |    5 +++++
 lib/canonicalize-lgpl.c |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index db01579..ad3a917 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-27  Andreas Gruenbacher <[email protected]>
+
+       * lib/canonicalize-lgpl.c: Avoid an 'empty declaration' / 'extraneous
+       semicolon' warning with some compilers.
+
 2010-04-27  Eric Blake  <[email protected]>
 
        full-read, full-write: relax license
diff --git a/lib/canonicalize-lgpl.c b/lib/canonicalize-lgpl.c
index 480a132..d98b3ac 100644
--- a/lib/canonicalize-lgpl.c
+++ b/lib/canonicalize-lgpl.c
@@ -334,7 +334,9 @@ error:
   }
   return NULL;
 }
+#ifdef _LIBC
 versioned_symbol (libc, __realpath, realpath, GLIBC_2_3);
+#endif
 #endif /* !FUNC_REALPATH_WORKS || defined _LIBC */
 
 
-- 
1.7.1.rc1.12.ga601




Reply via email to