windows: Declare strerror_s()

Older MinGW versions seem to miss this function declaration. Fixes build on
Travis using Ubuntu 12.04.
This commit is contained in:
Martin Willi
2014-06-17 15:23:33 +02:00
parent 1bcf850738
commit dff39a4c5b
+5
View File
@@ -361,6 +361,11 @@ ssize_t windows_send(int sockfd, const void *buf, size_t len, int flags);
ssize_t windows_sendto(int sockfd, const void *buf, size_t len, int flags,
const struct sockaddr *dest_addr, socklen_t addrlen);
/**
* Declaration missing on older WinGW
*/
_CRTIMP errno_t strerror_s(char *buf, size_t size, int errnum);
/**
* strerror_s, but supporting POSIX compatiblity errno >= 100
*/