summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-security/nmap/files/0001-include-time.h-for-time-structure-definition.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-security/nmap/files/0001-include-time.h-for-time-structure-definition.patch')
-rw-r--r--meta-oe/recipes-security/nmap/files/0001-include-time.h-for-time-structure-definition.patch78
1 files changed, 78 insertions, 0 deletions
diff --git a/meta-oe/recipes-security/nmap/files/0001-include-time.h-for-time-structure-definition.patch b/meta-oe/recipes-security/nmap/files/0001-include-time.h-for-time-structure-definition.patch
new file mode 100644
index 000000000..561c8c82c
--- /dev/null
+++ b/meta-oe/recipes-security/nmap/files/0001-include-time.h-for-time-structure-definition.patch
@@ -0,0 +1,78 @@
1From c774f2b129fd5acd5647d92c57a2079ae638a62b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 20 Jan 2019 23:07:39 -0800
4Subject: [PATCH] include time.h for time structure definition
5
6Exposed by musl/clang
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 nmap_error.cc | 1 +
13 nping/EchoServer.cc | 1 +
14 osscan.cc | 1 +
15 osscan2.cc | 1 +
16 service_scan.cc | 1 +
17 5 files changed, 5 insertions(+)
18
19diff --git a/nmap_error.cc b/nmap_error.cc
20index 19beafb..ea14e08 100644
21--- a/nmap_error.cc
22+++ b/nmap_error.cc
23@@ -135,6 +135,7 @@
24 #include "xml.h"
25
26 #include <errno.h>
27+#include <time.h>
28
29 extern NmapOps o;
30
31diff --git a/nping/EchoServer.cc b/nping/EchoServer.cc
32index 70f39b0..40cd4d6 100644
33--- a/nping/EchoServer.cc
34+++ b/nping/EchoServer.cc
35@@ -137,6 +137,7 @@
36 #include "NpingOps.h"
37 #include "ProbeMode.h"
38 #include <signal.h>
39+#include <time.h>
40
41 extern NpingOps o;
42 extern EchoServer es;
43diff --git a/osscan.cc b/osscan.cc
44index f851f60..6ae0c83 100644
45--- a/osscan.cc
46+++ b/osscan.cc
47@@ -149,6 +149,7 @@
48 # include <time.h>
49 # endif
50 #endif
51+#include <time.h>
52
53 #include <algorithm>
54 #include <list>
55diff --git a/osscan2.cc b/osscan2.cc
56index e341947..887fbd2 100644
57--- a/osscan2.cc
58+++ b/osscan2.cc
59@@ -147,6 +147,7 @@
60
61 #include <list>
62 #include <math.h>
63+#include <time.h>
64
65 extern NmapOps o;
66 #ifdef WIN32
67diff --git a/service_scan.cc b/service_scan.cc
68index 9780ae3..e07b940 100644
69--- a/service_scan.cc
70+++ b/service_scan.cc
71@@ -145,6 +145,7 @@
72 #include "nmap_tty.h"
73
74 #include <errno.h>
75+#include <time.h>
76
77 #if HAVE_OPENSSL
78 /* OpenSSL 1.0.0 needs _WINSOCKAPI_ to be defined, otherwise it loads