I\'m having issues getting the C sockets API to work properly in C++ on z/OS.
Although I am including sys/socket.h, I still get compile time errors telling m
sys/socket.h
Use the following c89 flag:
-D_OE_SOCKETS
Example:
bash-2.03$ c89 -D_OE_SOCKETS [filename].c
For more information look for c89 Options in the z/OS XLC/C++ User's Guide.