From 2dd3f969f5f2de92182038d1e33b11c798688bc9 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 25 Mar 2018 00:46:43 -0400 Subject: [PATCH] Add #includes missed in commit e22b27f0cb3ee03ee300d431997f5944ccf2d7b3. Leaving out getopt_long.h works on some platforms, but not all. Per buildfarm. Discussion: https://postgr.es/m/20180325030552.f462zqmohs6cqekg@alap3.anarazel.de --- src/bin/pg_controldata/pg_controldata.c | 1 + src/bin/pg_resetwal/pg_resetwal.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/bin/pg_controldata/pg_controldata.c b/src/bin/pg_controldata/pg_controldata.c index 0dbf8e2f6b..7d435ffa57 100644 --- a/src/bin/pg_controldata/pg_controldata.c +++ b/src/bin/pg_controldata/pg_controldata.c @@ -25,6 +25,7 @@ #include "catalog/pg_control.h" #include "common/controldata_utils.h" #include "pg_getopt.h" +#include "getopt_long.h" static void diff --git a/src/bin/pg_resetwal/pg_resetwal.c b/src/bin/pg_resetwal/pg_resetwal.c index ba3b8b4d6b..8b1c9355c5 100644 --- a/src/bin/pg_resetwal/pg_resetwal.c +++ b/src/bin/pg_resetwal/pg_resetwal.c @@ -55,6 +55,7 @@ #include "common/restricted_token.h" #include "storage/large_object.h" #include "pg_getopt.h" +#include "getopt_long.h" static ControlFileData ControlFile; /* pg_control values */ -- 2.40.0