From: Tom Lane Date: Sun, 25 Mar 2018 04:46:43 +0000 (-0400) Subject: Add #includes missed in commit e22b27f0cb3ee03ee300d431997f5944ccf2d7b3. X-Git-Tag: REL_11_BETA1~491 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2dd3f969f5f2de92182038d1e33b11c798688bc9;p=postgresql 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 --- 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 */