1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Additional header includes for time_t, gettimeofday, timeval, etc. See #1317, #1363

This commit is contained in:
dmiller
2019-05-22 15:27:13 +00:00
parent c661979637
commit ab79382f93
6 changed files with 36 additions and 10 deletions

View File

@@ -151,6 +151,7 @@ class FingerPrintResults;
#include <list>
#include <string>
#include <time.h> /* time_t */
#ifndef INET6_ADDRSTRLEN
#define INET6_ADDRSTRLEN 46

View File

@@ -135,6 +135,16 @@
#include "xml.h"
#include <errno.h>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
extern NmapOps o;

View File

@@ -148,6 +148,17 @@
#endif
#include <stdlib.h>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
#include "nmap_tty.h"
#include "NmapOps.h"

View File

@@ -158,6 +158,8 @@
#define X509_get0_notAfter X509_get_notAfter
#endif
/* struct tm */
#include <time.h>
#include "nse_lua.h"

View File

@@ -139,16 +139,7 @@
#include <errno.h>
#include <stdarg.h>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
#include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
#include <algorithm>
#include <list>

View File

@@ -180,6 +180,17 @@ class Target;
#include <stdarg.h>
#include <string>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
#ifdef WIN32
/* Show a fatal error explaining that an interface is not Ethernet and won't
work on Windows. Do nothing if --send-ip (PACKET_SEND_IP_STRONG) was used. */