projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eafc31
)
[wasm] Wasm actually has inet_pton but configure doesn't detect it.
author
Rodrigo Kumpera
<kumpera@gmail.com>
Thu, 31 Aug 2017 18:19:43 +0000
(11:19 -0700)
committer
Rodrigo Kumpera
<kumpera@gmail.com>
Fri, 1 Sep 2017 21:52:54 +0000
(14:52 -0700)
mono/utils/networking-missing.c
patch
|
blob
|
history
diff --git
a/mono/utils/networking-missing.c
b/mono/utils/networking-missing.c
index 32aeb9633886e6fed3fd9f09e10ab79386cbd4f0..5c99dbb9e341065bfba3d36b7b4bef186a201423 100644
(file)
--- a/
mono/utils/networking-missing.c
+++ b/
mono/utils/networking-missing.c
@@
-16,7
+16,8
@@
#include <netdb.h>
#endif
-#ifndef HAVE_INET_PTON
+//wasm does have inet_pton even though autoconf fails to find
+#if defined (HAVE_INET_PTON) && !defined (HOST_WASM)
int
inet_pton (int family, const char *address, void *inaddrp)