Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit534da37

Browse files
committed
Protect zic's symlink() call with #ifdef HAVE_SYMLINK.
The IANA crew seem to think that symlink() exists everywhere nowadays,and they may well be right. But we use #ifdef HAVE_SYMLINK elsewhereso for consistency we should do it here too. Noted by Michael Paquier.
1 parent6d257e7 commit534da37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/timezone/zic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ dolink(char const * fromfield, char const * tofield)
811811
link_errno=link(fromname,toname)==0 ?0 :errno;
812812
if (link_errno!=0)
813813
{
814+
#ifdefHAVE_SYMLINK
814815
constchar*s=fromfield;
815816
constchar*t;
816817
char*p;
@@ -838,6 +839,7 @@ dolink(char const * fromfield, char const * tofield)
838839
strerror(link_errno));
839840
}
840841
else
842+
#endif/* HAVE_SYMLINK */
841843
{
842844
FILE*fp,
843845
*tp;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp