Fix header inclusion order in pg_receivewal.c

lz4frame.h was getting declared after the headers specific to Postgres,
but it needs to be included between postgres_fe.h and the internal
headers.

Issue introduced by babbbb5.

Reported-by: Justin Prysby
Discussion: https://postgr.es/m/20220317111220.GI28503@telsasoft.com
This commit is contained in:
Michael Paquier 2022-03-18 10:38:16 +09:00
parent b2397aae23
commit f512efb2d5

View File

@ -19,6 +19,10 @@
#include <signal.h>
#include <sys/stat.h>
#include <unistd.h>
#ifdef USE_LZ4
#include <lz4frame.h>
#endif
#ifdef HAVE_LIBZ
#include <zlib.h>
#endif
@ -32,10 +36,6 @@
#include "receivelog.h"
#include "streamutil.h"
#ifdef USE_LZ4
#include "lz4frame.h"
#endif
/* Time to sleep between reconnection attempts */
#define RECONNECT_SLEEP_TIME 5