aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-08-18 17:51:35 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2019-08-18 17:51:35 -0400
commit5c66e99178c2f72042034cceb6bc4902650a2608 (patch)
tree855fcf4f014243005ce7db41d09a979fd106ea9a
parent4d4c66addfd4da51b0e4be456d6109bea4539fac (diff)
downloadpostgresql-5c66e99178c2f72042034cceb6bc4902650a2608.tar.gz
postgresql-5c66e99178c2f72042034cceb6bc4902650a2608.zip
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.
-rw-r--r--src/interfaces/ecpg/pgtypeslib/dt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/pgtypeslib/dt.h b/src/interfaces/ecpg/pgtypeslib/dt.h
index c5fd6bdaed9..893c9b6194e 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;