1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 11:59:03 +00:00

Allow use of Windows' own inet_pton and inet_ntop functions

This commit is contained in:
dmiller
2016-06-04 02:46:12 +00:00
parent 50054e6ed7
commit 855ec33fc0
5 changed files with 21 additions and 7 deletions

View File

@@ -22,6 +22,8 @@
#include "nbase.h"
#ifndef HAVE_INET_PTON
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
@@ -243,3 +245,5 @@ inet_pton6(const char *src, unsigned char *dst)
return (1);
}
#endif
#endif /* ifndef HAVE_INET_PTON */