Closed jubalh closed 2 years ago
ssize_t is not a linux or other system specific. Just include
ssize_t is not a linux or other system specific. Just include
- I believe it should be there.
apparently POSIX isn't sure where it wants to typedef it ...
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html#tag_13_77_03_05
so please #include <unistd.h>
unconditionally
I included unistd.h
in the non win32 case.
When compiling on buildroot I get:
src/tls.c:235:28: error: ‘ssize_t’ undeclared (first use in this function); did you mean ‘size_t’?
To have this POSIX type available we will need to include
sys/types.h
on Linux. Unsure about other systems.