From: Sangamesh Mallayya Date: Sun, 8 Dec 2024 07:23:49 +0000 (-0600) Subject: aix: Resolve build failure with default C23 X-Git-Tag: basepoints/gcc-16~3453 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e76df3586417d645dd84e8a1ab165605a8924796;p=thirdparty%2Fgcc.git aix: Resolve build failure with default C23 libiberty/getopt.c file is defining _NO_PROTO, which causes conflicting declarations for the functions in AIX header files like stdio.h & stdlib.h. Looks like _NO_PROTO define were added long back and conflicting declarations were always present until C23 standard uncovered it. Remove the block defining _NO_PROTO as both Tru64 UNIX (ex-OSF/1) and AIX 3.2 is no more supported. libiberty/ChangeLog: * getopt.c: Remove _NO_PROTO block --- diff --git a/libiberty/getopt.c b/libiberty/getopt.c index 2f7086cc0c89..48736d4db418 100644 --- a/libiberty/getopt.c +++ b/libiberty/getopt.c @@ -23,12 +23,6 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -/* This tells Alpha OSF/1 not to define a getopt prototype in . - Ditto for AIX 3.2 and . */ -#ifndef _NO_PROTO -# define _NO_PROTO -#endif - #ifdef HAVE_CONFIG_H # include #endif