summaryrefslogtreecommitdiff
path: root/stun/stunmessage.c
diff options
context:
space:
mode:
authorYouness Alaoui <kakaroto@kakaroto.(none)>2008-10-28 19:04:02 -0400
committerYouness Alaoui <kakaroto@kakaroto.(none)>2008-10-28 19:04:02 -0400
commit5701bd5f22194dfb3edf22f379f2b9d8decaed69 (patch)
tree24b50011bf5e915a99cfc6ef6c429a32c3eb3e32 /stun/stunmessage.c
parent774ddb945498b5aa67b205658a133f33e633a4bf (diff)
downloadlibnice-5701bd5f22194dfb3edf22f379f2b9d8decaed69.tar.gz
workaround for non existing errno macros
Diffstat (limited to 'stun/stunmessage.c')
-rw-r--r--stun/stunmessage.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/stun/stunmessage.c b/stun/stunmessage.c
index 662691b..6e62d12 100644
--- a/stun/stunmessage.c
+++ b/stun/stunmessage.c
@@ -51,6 +51,15 @@
#include <string.h>
#include <stdlib.h>
+#ifdef _WIN32
+#define ENOENT -1
+#define EINVAL -2
+#define ENOBUFS -3
+#define EAFNOSUPPORT -4
+#else
+#include <errno.h>
+#endif
+
bool stun_message_init (StunMessage *msg, stun_class_t c, stun_method_t m,