[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tzset: fix compilation warnings on mingw
From: |
Bruno Haible |
Subject: |
tzset: fix compilation warnings on mingw |
Date: |
Sun, 21 Jun 2020 22:55:15 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-179-generic; KDE/5.18.0; x86_64; ; ) |
This file has invocations of undeclared functions getenv() and strchr().
This patch fixes it.
2020-06-21 Bruno Haible <bruno@clisp.org>
tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
* lib/tzset.c: Include <stdlib.h>, <string.h>.
diff --git a/lib/tzset.c b/lib/tzset.c
index 24c972d..e3543ba 100644
--- a/lib/tzset.c
+++ b/lib/tzset.c
@@ -22,6 +22,9 @@
/* Specification. */
#include <time.h>
+#include <stdlib.h>
+#include <string.h>
+
#include "localtime-buffer.h"
/* This is a wrapper for tzset, for systems on which tzset may clobber
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- tzset: fix compilation warnings on mingw,
Bruno Haible <=