]> git.ipfire.org Git - thirdparty/gcc.git/commit
aix: Resolve build failure with default C23
authorSangamesh Mallayya <swamy.sangamesh@gmail.com>
Sun, 8 Dec 2024 07:23:49 +0000 (01:23 -0600)
committerSangamesh Mallayya <swamy.sangamesh@gmail.com>
Wed, 11 Dec 2024 09:54:50 +0000 (03:54 -0600)
commite76df3586417d645dd84e8a1ab165605a8924796
treea8226664373328bf20e206ae40443df6f8a3c5b9
parente5569a20cf3791553ac324269001a7c7c0e56242
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
libiberty/getopt.c