diff options
author | Michael Tuexen <tuexen@fh-muenster.de> | 2020-05-19 09:48:51 +0200 |
---|---|---|
committer | Michael Tuexen <tuexen@fh-muenster.de> | 2020-05-19 09:48:51 +0200 |
commit | 79ce3f1e13cd1cb283871ec5a9f90cf4062d91d4 (patch) | |
tree | 7116762dc5c4ad72fbdbb7f0bf8c9a8604a35f47 | |
parent | edd369d6a0544ee865ef3678c0c68ccf3a98a57c (diff) | |
download | usrsctp-79ce3f1e13cd1cb283871ec5a9f90cf4062d91d4.tar.gz |
Hopefully unbreak Windows builds.
-rwxr-xr-x | usrsctplib/netinet/sctp_os_userspace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usrsctplib/netinet/sctp_os_userspace.h b/usrsctplib/netinet/sctp_os_userspace.h index c4fba93..669b0ed 100755 --- a/usrsctplib/netinet/sctp_os_userspace.h +++ b/usrsctplib/netinet/sctp_os_userspace.h @@ -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 |