提交 795e0f09 编写于 作者: D Daniel Gustafsson

Fix header file inclusion for PG_PRINTF_ATTRIBUTE in mapred

Commit 8e60838c22735fcacabc125170fc1d removed PG_PRINTF_ATTRIBUTE
from pg_config_manual.h, which exposed the fact that gpmapreduce
was erroneously including that header instead of the correct one.
Instead include postgres_fe.h for now, as gpmapreduce is client
side tool and not a separated extension, to fix compilation.
Reviewed-by: NAsim R P <apraveen@pivotal.io>
上级 7ac177ba
#ifndef MAPRED_H
#define MAPRED_H
#include <postgres_fe.h>
#ifndef YAML_H
#include <yaml.h>
#endif
......
......@@ -6,7 +6,6 @@
#include <stdarg.h>
#include <unistd.h> /* for file "access" test */
#include <errno.h>
#include "pg_config_manual.h"
#define scalarfree(x) \
do { \
......
......@@ -7,7 +7,6 @@
#include <yaml.h>
#include <stdarg.h>
#include "pg_config_manual.h"
int mapred_parse_error(mapred_parser_t *parser, char *fmt, ...)
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3)));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册