Skip to content

Commit

Permalink
Merge pull request #154 from jelu/osx
Browse files Browse the repository at this point in the history
Compat for OS X
  • Loading branch information
jelu authored Mar 29, 2017
2 parents ef24c96 + 5ed03e3 commit 4e934fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const char* dsc_strerror(int errnum, char* buf, size_t buflen) {

memset(buf, 0, buflen);

#if __FreeBSD__ || __OpenBSD__ || ( (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE )
#if ( (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE ) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
/* XSI-compliant version */
{
int ret = strerror_r(errnum, buf, buflen);
Expand Down

0 comments on commit 4e934fe

Please sign in to comment.