postgrespro.git / summary / log / commit / refs
commit 5c66e99178c2f72042034cceb6bc4902650a2608
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sun Aug 18 21:51:35 2019 +0000
Fix failure-to-compile-standalone in ecpg's dt.h.
This has to have <time.h>, or the references to "struct tm" don't
mean what they should.
We have some other recently-introduced issues of the same ilk,
but this one seems old. No backpatch though, as it's only a
latent problem for most purposes.
src/interfaces/ecpg/pgtypeslib/dt.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/interfaces/ecpg/pgtypeslib/dt.h b/src/interfaces/ecpg/pgtypeslib/dt.h
index c5fd6bdaed..893c9b6194 100644
--- a/src/interfaces/ecpg/pgtypeslib/dt.h
+++ b/src/interfaces/ecpg/pgtypeslib/dt.h
@@ -5,6 +5,8 @@
#include <pgtypes_timestamp.h>
+#include <time.h>
+
#define MAXTZLEN 10
typedef int32 fsec_t;
[parent: 4d4c66addfd4]