$OpenBSD: patch-src_bin_scripts_vacuumdb_c,v 1.2 2018/02/18 17:36:01 sthen Exp $
Index: src/bin/scripts/vacuumdb.c
--- src/bin/scripts/vacuumdb.c.orig
+++ src/bin/scripts/vacuumdb.c
@@ -10,6 +10,8 @@
  *-------------------------------------------------------------------------
  */
 
+#include <sys/select.h> /* FD_SETSIZE */
+
 #include "postgres_fe.h"
 
 #ifdef HAVE_SYS_SELECT_H
