Hello!
I am using gcc-8.3.0-3_beta.ppc from AIX_Toolbox_beta (installed using dnf on Aix).
I have ran into issues with sys/socket.h file provided by this package;
Steps to reproduce:
1. Create a file err.cc:
```
#include <sys/socket.h>
#include <stdio.h>
int main() {
printf("main\n");
return 0;
}
```
2. Compile with g++ -Wall err.c. This fails with the following: `error: expected '}' at end of input`.
I believe the root cause is the un-terminated "extern C++" declaration on line 128 of /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include-fixed/sys/socket.h, provided by gcc-8.3.0-3_beta.ppc dnf package.
Commenting out line 128 appears to solve the problem for me.
Have anyone ran into this before?
------------------------------
Vasili Skurydzin
------------------------------