Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hz5OQ-000060-FZ for pgsql-bugs@arkaria.postgresql.org; Sat, 17 Aug 2019 20:33:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hz5OP-0003xC-AW for pgsql-bugs@arkaria.postgresql.org; Sat, 17 Aug 2019 20:33:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hz5OO-0003kL-Uc for pgsql-bugs@lists.postgresql.org; Sat, 17 Aug 2019 20:33:41 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hz5OM-0007ON-Dt for pgsql-bugs@lists.postgresql.org; Sat, 17 Aug 2019 20:33:39 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id AC3536B5; Sat, 17 Aug 2019 16:33:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 17 Aug 2019 16:33:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=qnKBkrHXZqXkpZV6JncW0b8zkjC x809X1eZxRwRllag=; b=J7J0mCWyMHavqjPYvwper2flsAKLmsL5VMzAEe53QE5 GKgshyPJ5JCHtkJHXbTvTcOC8dGYR4YZi4F2QfWowvqQJyyR1Ifl5pNoUIKN6C3E xSm4F1G9BNnMWw19bnmQN0vmJPC3jafeCQBxfWx5ocfYAN/BriOZPi3D52uA5WZC zg1q3JKM2AnF+/yoqs2+1IKNJ23I1lQtEME5P+jsLNGYCFbhaZW4OAlu5FIXl9wW WY92oJl19o824iFLsdDfs4HY8XnEDSMsf6JR0O9hPJm4a30Y4+bFi+fTeRT+79mb TW3tELENqaWEooCgLBmD+vqj4chNxR2SbMpIsvGjnDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=qnKBkr HXZqXkpZV6JncW0b8zkjCx809X1eZxRwRllag=; b=JCfUpMz50MUoo+/jmnHbIQ AFSGItFdbWKo6VxvhEA/NoHbKtNWRvfZ7qfECg2596wsT2AqRUbn3D2isd9J+vPL uxH1b5IbTNoz2Ea7zNRM7pCZ3D1w6dj1uKk2VLvM3DY4g07kSUmUjHFONxVogxNp v3qXcs22FRpXCig5/Y/BNnZ8Cy1EC3v7KLhQNZwL3H67v2nq9vcAtbXKlSz2yaxn DlJeCLdJOfEIGDW6n4fLUebNL9mdPIwBIKvGqAWmCSsJOW2zGiBdqK4St+26MZaj hEjre59s3yxtzkFm++/HJkzfE+ADqDqpC4xlYCqpKX7GeTlmxHn+uGzYEov7nPTg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudefhedgudehfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdefhedmnecujfgurhepff fhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghu nhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepieejrdduiedtrd dvudekrddvfeejnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghr rgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-218-237.hsd1.ca.comcast.net [67.160.218.237]) by mail.messagingengine.com (Postfix) with ESMTPA id AC53C80060; Sat, 17 Aug 2019 16:33:35 -0400 (EDT) Date: Sat, 17 Aug 2019 13:33:34 -0700 From: Andres Freund To: jungleboogie0@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclared identifier 'FD_SETSIZE' Message-ID: <20190817203334.arnlbvxaaqfhycaz@alap3.anarazel.de> References: <15964-c1753bdfed722e04@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15964-c1753bdfed722e04@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-08-17 19:06:33 +0000, PG Bug reporting form wrote: > I'm trying to compile Postgresql from master on my OpenBSD machine, but I'm > getting a build failure here: > vacuumdb.c:184:26: error: use of undeclared identifier 'FD_SETSIZE' > if (concurrentCons > FD_SETSIZE - 1) > ^ > vacuumdb.c:187:10: error: use of undeclared identifier 'FD_SETSIZE' > FD_SETSIZE > - 1); > ^ > 2 errors generated. Yea, that file is clearly missing an include for #include . I don't immediately see how that file is included on other platforms, but it's obviously not enough for your version of openbsd. I assume adding #ifdef HAVE_SYS_SELECT_H #include #endif after #include "postgres_fe.h" in vacuumdb.c fixes the problem? Michael, it looks like this is an oversight in commit 5f3840370b63fdf17f704a285623ccc233fa8d4f Author: Michael Paquier Date: 2019-07-19 09:31:58 +0900 Refactor parallelization processing code in src/bin/scripts/ Greetings, Andres Freund