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
#include <signal.h>
#include <sys/stat.h>
#include <unistd.h>
+
+#ifdef USE_LZ4
+#include <lz4frame.h>
+#endif
#ifdef HAVE_LIBZ
#include <zlib.h>
#endif
#include "receivelog.h"
#include "streamutil.h"
-#ifdef USE_LZ4
-#include "lz4frame.h"
-#endif
-
/* Time to sleep between reconnection attempts */
#define RECONNECT_SLEEP_TIME 5