bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* tzset: fix compilation warnings on mingw
@ 2020-06-21 20:55 Bruno Haible
  0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2020-06-21 20:55 UTC (permalink / raw)
  To: bug-gnulib

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-21 20:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-21 20:55 tzset: fix compilation warnings on mingw Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).