Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RekGRpth committed Nov 26, 2023
1 parent cebaa32 commit d164288
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include <miscadmin.h>
#endif
#include <nodes/makefuncs.h>
#if PG_VERSION_NUM < 100000
#include <parser/parse_node.h>
#endif
#include <pgstat.h>
#include <postmaster/bgworker.h>
#if PG_VERSION_NUM < 90500
Expand Down
2 changes: 1 addition & 1 deletion dest.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <utils/lsyscache.h>

enum PIPES {READ, WRITE};
extern emit_log_hook_type emit_log_hook_prev;
extern Task task;
static emit_log_hook_type emit_log_hook_prev = NULL;
static int stdout_fd;
static int stdout_pipe[2];

Expand Down
2 changes: 1 addition & 1 deletion task.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
#include <utils/timestamp.h>
#endif

emit_log_hook_type emit_log_hook_prev = NULL;
extern char *task_null;
extern int task_fetch;
extern TaskShared *taskshared;
extern WorkShared *workshared;
extern Work work;
static emit_log_hook_type emit_log_hook_prev = NULL;
Task task = {0};

static bool task_live(const Task *t) {
Expand Down
3 changes: 3 additions & 0 deletions work.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "include.h"

#if PG_VERSION_NUM < 100000
#include <access/hash.h>
#endif
#if PG_VERSION_NUM >= 120000
#include <access/relation.h>
#endif
Expand Down

0 comments on commit d164288

Please sign in to comment.