I'd like to compile a c programm developed for linux using cc under os x. It includes the header sys/io.h. When compiling I get the error that this file could not be found? Isn't there any sys/io.h header file under os x?
Any help would be really appreciated!
Thanks!
Include <sys/uio.h>
instead.
or why not both?
#ifdef __APPLE__
#include <sys/uio.h>
#else
#include <sys/io.h>
#endif
In case of Apple OS (OSX/iOS) the code will know compile with <sys/uio.h>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With