From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1129) id E00043857BAB; Wed, 13 Mar 2024 16:28:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E00043857BAB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1710347308; bh=ZFsbgW3eYrpbVBP/9KfMpxctD4NK1RhAwgpOpjWZ3Yc=; h=From:To:Subject:Date:From; b=PkbzS5E6coQ6h6O83arklXEDt6p/B1zOasyG9FCoOTfK0Vf7a/9VUesmElwJs53+N SlD+7lm3p+1hqCZS882x/W9I72yJ0v2PsTVMEpwzsghG5faaEUF9V2ZaUMipvu5iue +IorznrguLeBXX6USCVEsD5YkmFyWhAZm5g9Ykj8= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Joel Sherrill To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/main] libc/include/sys/select.h: Use elif not elifdef X-Act-Checkin: newlib-cygwin X-Git-Author: Joel Sherrill X-Git-Refname: refs/heads/main X-Git-Oldrev: 8d38c37ed9356e8f26e803fcf28e7592799c870a X-Git-Newrev: 176b19fbe5e77c4ee8199b3895d0299bd4f8267e Message-Id: <20240313162828.E00043857BAB@sourceware.org> Date: Wed, 13 Mar 2024 16:28:28 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D176b19fbe5e= 77c4ee8199b3895d0299bd4f8267e commit 176b19fbe5e77c4ee8199b3895d0299bd4f8267e Author: Joel Sherrill Date: Wed Mar 13 09:29:36 2024 -0500 libc/include/sys/select.h: Use elif not elifdef =20 The cpp directive "elifdef" is only available in very recent GCC versio= ns. This should be able to compile on older toolchains in C99 mode.` Diff: --- newlib/libc/include/sys/select.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/include/sys/select.h b/newlib/libc/include/sys/sel= ect.h index 8b5675640..89269400b 100644 --- a/newlib/libc/include/sys/select.h +++ b/newlib/libc/include/sys/select.h @@ -30,7 +30,7 @@ typedef __sigset_t sigset_t; #ifndef FD_SETSIZE # ifdef __CYGWIN__ # define FD_SETSIZE 1024 -# elifdef __rtems__ +# elif defined(__rtems__) # define FD_SETSIZE 256 # else # define FD_SETSIZE 64