projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d4c66a
)
Fix failure-to-compile-standalone in ecpg's dt.h.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sun, 18 Aug 2019 21:51:35 +0000
(17:51 -0400)
committer
Tom 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
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/pgtypeslib/dt.h
b/src/interfaces/ecpg/pgtypeslib/dt.h
index c5fd6bdaed9ae4f228600e1c70f211c97f55cc6d..893c9b6194e4437a9651c7cae2fe7522785ba46a 100644
(file)
--- 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;