/*
 * controldata_utils.h
 *		Common code for pg_controldata output
 *
 *	Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
 *	Portions Copyright (c) 1994, Regents of the University of California
 *
 *	src/include/common/controldata_utils.h
 */
#ifndef COMMON_CONTROLDATA_UTILS_H
#define COMMON_CONTROLDATA_UTILS_H

#include "catalog/pg_control.h"

extern ControlFileData *get_controlfile(char *DataDir, const char *progname);

#endif   /* COMMON_CONTROLDATA_UTILS_H */

/*
 * controldata_utils.h
 *		Common code for pg_controldata output
 *
 *	Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
 *	Portions Copyright (c) 1994, Regents of the University of California
 *
 *	src/include/common/controldata_utils.h
 */
#ifndef COMMON_CONTROLDATA_UTILS_H
#define COMMON_CONTROLDATA_UTILS_H

extern ControlFileData *get_controlfile(char *DataDir, const char *progname);

#endif   /* COMMON_CONTROLDATA_UTILS_H */

--- 
+++ 
@@ -10,6 +10,8 @@
 #ifndef COMMON_CONTROLDATA_UTILS_H
 #define COMMON_CONTROLDATA_UTILS_H
 
+#include "catalog/pg_control.h"
+
 extern ControlFileData *get_controlfile(char *DataDir, const char *progname);
 
 #endif   /* COMMON_CONTROLDATA_UTILS_H */
Add missing include for self-containment
