git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4d4c66a)
Fix failure-to-compile-standalone in ecpg's dt.h.
2019年8月18日 21:51:35 +0000 (17:51 -0400)
2019年8月18日 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.


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;
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /