summaryrefslogtreecommitdiff
path: root/contrib/cube
diff options
context:
space:
mode:
authorTom Lane2002-09-05 00:43:07 +0000
committerTom Lane2002-09-05 00:43:07 +0000
commit52c9d259335c9670f6487c5f40fc53b57a4c7b17 (patch)
tree721b585843dca83ac9517ca933fa891c4532a530 /contrib/cube
parent3f63787cbfe0f1e837c92cd8ac35fd7ab811c18b (diff)
Be careful to include postgres.h *before* any system headers, to ensure
that the right flavors of largefile-related definitions are seen. Most of these changes are probably unnecessary, but better safe than sorry.
Diffstat (limited to 'contrib/cube')
-rw-r--r--contrib/cube/cubeparse.y4
-rw-r--r--contrib/cube/cubescan.l3
2 files changed, 4 insertions, 3 deletions
diff --git a/contrib/cube/cubeparse.y b/contrib/cube/cubeparse.y
index 887528eb03d..6aba226c70b 100644
--- a/contrib/cube/cubeparse.y
+++ b/contrib/cube/cubeparse.y
@@ -7,11 +7,11 @@
#define YYSTYPE char *
#define YYDEBUG 1
-#include <string.h>
+#include "postgres.h"
+
#include "cubedata.h"
#include "buffer.h"
-#include "postgres.h"
#include "utils/palloc.h"
#include "utils/elog.h"
diff --git a/contrib/cube/cubescan.l b/contrib/cube/cubescan.l
index d160937c2f7..6fc51e81142 100644
--- a/contrib/cube/cubescan.l
+++ b/contrib/cube/cubescan.l
@@ -6,7 +6,8 @@
#define YYSTYPE char *
#define yylval cube_yylval
-#include <stdio.h>
+#include "postgres.h"
+
#include "cubeparse.h"
#include "buffer.h"