Fix failure-to-compile-standalone in ecpg's dt.h.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Aug 2019 21:51:35 +0000 (17:51 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Aug 2019 21:51:35 +0000 (17:51 -0400)
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

index c5fd6bdaed9ae4f228600e1c70f211c97f55cc6d..893c9b6194e4437a9651c7cae2fe7522785ba46a 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <pgtypes_timestamp.h>
 
+#include <time.h>
+
 #define MAXTZLEN            10
 
 typedef int32 fsec_t;