aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/timezone/zic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/timezone/zic.c b/src/timezone/zic.c
index f9cbac9f006..653e2db71e6 100644
--- a/src/timezone/zic.c
+++ b/src/timezone/zic.c
@@ -811,6 +811,7 @@ dolink(char const * fromfield, char const * tofield)
link_errno = link(fromname, toname) == 0 ? 0 : errno;
if (link_errno != 0)
{
+#ifdef HAVE_SYMLINK
const char *s = fromfield;
const char *t;
char *p;
@@ -838,6 +839,7 @@ dolink(char const * fromfield, char const * tofield)
strerror(link_errno));
}
else
+#endif /* HAVE_SYMLINK */
{
FILE *fp,
*tp;