Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 19b2094

Browse files
committed
Fix not-HAVE_SYMLINK code in zic.c.
I broke this in commit f309492. Apparently it's dead code anyway, at least as far as our buildfarm is concerned (and the upstream IANA code doesn't worry at all about symlink() not being present). But as long as the rest of our code is willing to guard against not having symlink(), this should too. Noted while investigating a tangentially-related complaint from Sandeep Thakkar. Back-patch to keep branches in sync.
1 parent 162477a commit 19b2094

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/timezone/zic.c

+2
Original file line numberDiff line numberDiff line change
@@ -931,9 +931,11 @@ dolink(char const * fromfield, char const * tofield, bool staysymlink)
931931
if (link_errno != ENOTSUP)
932932
warning(_("copy used because hard link failed: %s"),
933933
strerror(link_errno));
934+
#ifdef HAVE_SYMLINK
934935
else if (symlink_errno != ENOTSUP)
935936
warning(_("copy used because symbolic link failed: %s"),
936937
strerror(symlink_errno));
938+
#endif
937939
}
938940
}
939941
}

0 commit comments

Comments
 (0)