* localtime.c (union local_storage): Define fullname member only
if needed.  This saves space on unlikely platforms where
sizeof (struct file_analysis) < PATH_MAX, and is closer to FreeBSD.
(tzloadbody): Mention fullname only if declared.
---
 localtime.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/localtime.c b/localtime.c
index a78962a6..c9836b2d 100644
--- a/localtime.c
+++ b/localtime.c
@@ -771,7 +771,7 @@ union local_storage {
     struct state st;
   } u;
 
-#ifdef PATH_MAX
+#if defined PATH_MAX && !OPENAT_TZDIR && !SUPPRESS_TZDIR
   /* The name of the file to be opened.  */
   char fullname[PATH_MAX];
 #endif
@@ -890,7 +890,7 @@ tzloadbody(char const *name, struct state *sp, char 
tzloadflags,
                cp = mempcpy(lsp, tzdirslash, tzdirslashlen);
                cp = mempcpy(cp, name, namelen);
                *cp = '\0';
-#ifdef PATH_MAX
+#if defined PATH_MAX && !OPENAT_TZDIR && !SUPPRESS_TZDIR
                name = lsp->fullname;
 #else
                name = (char *) lsp;
-- 
2.48.1

Reply via email to