diff options
Diffstat (limited to 'meta-oe/recipes-security/nmap/nmap-7.92/0003-Include-time.h-header-to-pass-clang-compilation.patch')
-rw-r--r-- | meta-oe/recipes-security/nmap/nmap-7.92/0003-Include-time.h-header-to-pass-clang-compilation.patch | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/meta-oe/recipes-security/nmap/nmap-7.92/0003-Include-time.h-header-to-pass-clang-compilation.patch b/meta-oe/recipes-security/nmap/nmap-7.92/0003-Include-time.h-header-to-pass-clang-compilation.patch new file mode 100644 index 0000000000..b940124f98 --- /dev/null +++ b/meta-oe/recipes-security/nmap/nmap-7.92/0003-Include-time.h-header-to-pass-clang-compilation.patch | |||
@@ -0,0 +1,76 @@ | |||
1 | From e9d876bedc8a7bc96856ecf38bbeeafee2d5b206 Mon Sep 17 00:00:00 2001 | ||
2 | From: Peiran Hong <peiran.hong@windriver.com> | ||
3 | Date: Fri, 20 Sep 2019 15:02:45 -0400 | ||
4 | Subject: [PATCH] Include time.h header to pass clang compilation | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Peiran Hong <peiran.hong@windriver.com> | ||
9 | --- | ||
10 | nmap_error.cc | 11 +---------- | ||
11 | nping/EchoServer.cc | 1 + | ||
12 | osscan2.cc | 1 + | ||
13 | service_scan.cc | 1 + | ||
14 | 4 files changed, 4 insertions(+), 10 deletions(-) | ||
15 | |||
16 | diff --git a/nmap_error.cc b/nmap_error.cc | ||
17 | index 5ec938f..83ba6cc 100644 | ||
18 | --- a/nmap_error.cc | ||
19 | +++ b/nmap_error.cc | ||
20 | @@ -67,16 +67,7 @@ | ||
21 | #include "xml.h" | ||
22 | |||
23 | #include <errno.h> | ||
24 | -#if TIME_WITH_SYS_TIME | ||
25 | -# include <sys/time.h> | ||
26 | -# include <time.h> | ||
27 | -#else | ||
28 | -# if HAVE_SYS_TIME_H | ||
29 | -# include <sys/time.h> | ||
30 | -# else | ||
31 | -# include <time.h> | ||
32 | -# endif | ||
33 | -#endif | ||
34 | +#include <time.h> | ||
35 | |||
36 | extern NmapOps o; | ||
37 | |||
38 | diff --git a/nping/EchoServer.cc b/nping/EchoServer.cc | ||
39 | index dea2851..c80efb4 100644 | ||
40 | --- a/nping/EchoServer.cc | ||
41 | +++ b/nping/EchoServer.cc | ||
42 | @@ -69,6 +69,7 @@ | ||
43 | #include "NpingOps.h" | ||
44 | #include "ProbeMode.h" | ||
45 | #include <signal.h> | ||
46 | +#include <time.h> | ||
47 | |||
48 | extern NpingOps o; | ||
49 | extern EchoServer es; | ||
50 | diff --git a/osscan2.cc b/osscan2.cc | ||
51 | index efe6da0..392c65f 100644 | ||
52 | --- a/osscan2.cc | ||
53 | +++ b/osscan2.cc | ||
54 | @@ -80,6 +80,7 @@ | ||
55 | |||
56 | #include <list> | ||
57 | #include <math.h> | ||
58 | +#include <time.h> | ||
59 | |||
60 | extern NmapOps o; | ||
61 | #ifdef WIN32 | ||
62 | diff --git a/service_scan.cc b/service_scan.cc | ||
63 | index 66e0d92..161f2a1 100644 | ||
64 | --- a/service_scan.cc | ||
65 | +++ b/service_scan.cc | ||
66 | @@ -77,6 +77,7 @@ | ||
67 | #include "nmap_tty.h" | ||
68 | |||
69 | #include <errno.h> | ||
70 | +#include <time.h> | ||
71 | |||
72 | #if HAVE_OPENSSL | ||
73 | /* OpenSSL 1.0.0 needs _WINSOCKAPI_ to be defined, otherwise it loads | ||
74 | -- | ||
75 | 2.34.1 | ||
76 | |||