Skip to content

Commit

Permalink
Hopefully unbreak Windows builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuexen committed May 19, 2020
1 parent edd369d commit 79ce3f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usrsctplib/netinet/sctp_os_userspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -840,10 +840,12 @@ sctp_hashfreedestroy(void *vhashtbl, struct malloc_type *type, u_long hashmask);
M_ALIGN(m, len); \
}

#if !defined(__Userspace_os_Windows)
#define SCTP_SNPRINTF(data, ...) \
if (snprintf(data, __VA_ARGS__) < 0) { \
data[0] = '\0'; \
}
#endif

/* We make it so if you have up to 4 threads
* writting based on the default size of
Expand Down

0 comments on commit 79ce3f1

Please sign in to comment.