aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java
diff options
context:
space:
mode:
authorSangamesh Mallayya <swamy.sangamesh@gmail.com>2026-01-29 07:04:40 -0600
committerSangamesh Mallayya <swamy.sangamesh@gmail.com>2026-01-29 07:08:03 -0600
commitbc10a49c37501e0603236fd9ca1f3a63bec24cc7 (patch)
tree8c5c87f4dd4be7aa4c9985cfbf44245c27f0df1c /libjava/gnu/java
parenta492b8c17118592061cc3834e7a169ca724440cb (diff)
downloadgcc-bc10a49c37501e0603236fd9ca1f3a63bec24cc7.zip
gcc-bc10a49c37501e0603236fd9ca1f3a63bec24cc7.tar.gz
gcc-bc10a49c37501e0603236fd9ca1f3a63bec24cc7.tar.bz2
Fix AIX build break in gcc/diagnostics/sarif-sink.cc.
In AIX, build fails while trying to compile gcc/diagnostics/sarif-sink.cc. Here is the snapshot of the error we are getting. In file included from /opt/freeware/src/packages/BUILD/gcc/gcc/system.h:46, from /opt/freeware/src/packages/BUILD/gcc/gcc/diagnostics/sarif-sink.cc:34: /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/13/include-fixed/stdio.h:593:12: error: conflicting declaration of C function 'int fgetpos64(FILE*, fpos64_t*)' 593 | extern int fgetpos64(FILE *, fpos64_t *); | ^~~~~~~~~ This happens when we include sys/types.h before defining _LARGE_FILES. We can see similar errors with this sample program. #include <sys/types.h> #define _LARGE_FILES 1 #include <stdio.h> int main() { return 0; } In gcc/diagnostics/sarif-sink.cc we are including config.h after #include <sys/un.h> which intern including sys/types.h and causing the conflicting errors. Including config.h before including sys/un.h should solve this error. The patch is to fix the build break on AIX. gcc/ChangeLog: * diagnostics/sarif-sink.cc: Move config.h at the begining.
Diffstat (limited to 'libjava/gnu/java')
0 files changed, 0 insertions, 0 deletions