Include unistd.h for ssize_t
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` or `unistd.h`.
This commit is contained in:
@@ -23,6 +23,10 @@
|
|||||||
#include <string.h> /* memeset */
|
#include <string.h> /* memeset */
|
||||||
#include <time.h> /* clock, time */
|
#include <time.h> /* clock, time */
|
||||||
|
|
||||||
|
#if !defined(_WIN32)
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(DONT_USE_GETRANDOM) && defined(__linux__) && \
|
#if !defined(DONT_USE_GETRANDOM) && defined(__linux__) && \
|
||||||
defined(__GLIBC_PREREQ)
|
defined(__GLIBC_PREREQ)
|
||||||
#if __GLIBC_PREREQ(2, 25)
|
#if __GLIBC_PREREQ(2, 25)
|
||||||
|
|||||||
Reference in New Issue
Block a user