From a837e0d3991e05db61dfbd35ee985976109092d5 Mon Sep 17 00:00:00 2001 From: Fredrik Roubert Date: Mon, 8 Jan 2024 14:17:38 +0900 Subject: [PATCH] ICU-22532 Set a value for _POSIX_C_SOURCE to get symlink() declared. ISO C99 and later do not support implicit function declarations. --- icu4c/source/tools/tzcode/zic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/icu4c/source/tools/tzcode/zic.c b/icu4c/source/tools/tzcode/zic.c index 54576780d5f..ed3e79239df 100644 --- a/icu4c/source/tools/tzcode/zic.c +++ b/icu4c/source/tools/tzcode/zic.c @@ -3,6 +3,9 @@ ** 2006-07-17 by Arthur David Olson. */ +/* https://man7.org/linux/man-pages/man2/symlink.2.html */ +#define _POSIX_C_SOURCE 200112L + /* Enable extensions and modifications for ICU. */ #define ICU