提交 5a47c8fa 编写于 作者: J Jesse Zhang 提交者: Adam Berlin

Add missing includes

* Re-ordering Makefile.global and Makefile.mock brings in the
much-needed global CFLAGS that turn some warnings into errors
* Add missing headers to fix "missing prototype" errors
* While we're at it, properly use <> for system / standard headers
上级 a5a5e94a
...@@ -14,8 +14,8 @@ OBJS = scripts/gpdb5-cluster.o \ ...@@ -14,8 +14,8 @@ OBJS = scripts/gpdb5-cluster.o \
EXS = scripts/gpdb6-cluster scripts/gpdb5-cluster EXS = scripts/gpdb6-cluster scripts/gpdb5-cluster
TARGETS = greenplum_five_to_greenplum_six_upgrade_test TARGETS = greenplum_five_to_greenplum_six_upgrade_test
include $(top_srcdir)/src/Makefile.mock
include $(top_srcdir)/src/Makefile.global include $(top_srcdir)/src/Makefile.global
include $(top_srcdir)/src/Makefile.mock
all: scripts/gpdb5-cluster scripts/gpdb6-cluster all: scripts/gpdb5-cluster scripts/gpdb6-cluster
......
#include <stdarg.h> #include <stdarg.h>
#include <stddef.h> #include <stddef.h>
#include <setjmp.h> #include <setjmp.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <sys/stat.h>
#include "cmockery.h" #include "cmockery.h"
#include "libpq-fe.h" #include "libpq-fe.h"
#include "stdbool.h"
#include "stdlib.h"
#include "sys/stat.h"
#include "utilities/gpdb5-cluster.h" #include "utilities/gpdb5-cluster.h"
#include "utilities/gpdb6-cluster.h" #include "utilities/gpdb6-cluster.h"
...@@ -300,4 +302,4 @@ main(int argc, char *argv[]) ...@@ -300,4 +302,4 @@ main(int argc, char *argv[])
}; };
return run_tests(tests); return run_tests(tests);
} }
\ No newline at end of file
#include "stdlib.h" #include <stdio.h>
#include <stdlib.h>
/* /*
* implements: * implements:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册