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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user