Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f512efb

Browse files
committed
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
1 parent b2397aa commit f512efb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bin/pg_basebackup/pg_receivewal.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#include <signal.h>
2020
#include <sys/stat.h>
2121
#include <unistd.h>
22+
23+
#ifdef USE_LZ4
24+
#include <lz4frame.h>
25+
#endif
2226
#ifdef HAVE_LIBZ
2327
#include <zlib.h>
2428
#endif
@@ -32,10 +36,6 @@
3236
#include "receivelog.h"
3337
#include "streamutil.h"
3438

35-
#ifdef USE_LZ4
36-
#include "lz4frame.h"
37-
#endif
38-
3939
/* Time to sleep between reconnection attempts */
4040
#define RECONNECT_SLEEP_TIME 5
4141

0 commit comments

Comments
 (0)