]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/nmap/fix-snprintf.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / nmap / fix-snprintf.patch
1 diff --git a/libdnet-stripped/include/dnet_winconfig.h b/libdnet-stripped/include/dnet_winconfig.h
2 index e41907c..82bc595 100644
3 --- a/libdnet-stripped/include/dnet_winconfig.h
4 +++ b/libdnet-stripped/include/dnet_winconfig.h
5 @@ -277,7 +277,7 @@ int strlcpy(char *, const char *, int);
6 char *strsep(char **, const char *);
7 #endif
8
9 -#define snprintf _snprintf
10 +//#define snprintf _snprintf
11
12 /* Without this, Windows will give us all sorts of crap about using functions
13 like strcpy() even if they are done safely */
14 diff --git a/nbase/nbase.h b/nbase/nbase.h
15 index 0ecd9bc..c0eb395 100644
16 --- a/nbase/nbase.h
17 +++ b/nbase/nbase.h
18 @@ -359,7 +359,7 @@ extern "C" int vsnprintf (char *, size_t, const char *, va_list);
19 #define putenv _putenv
20
21 #if !defined(__GNUC__)
22 -#define snprintf _snprintf
23 +//#define snprintf _snprintf
24 #endif
25
26 #define strcasecmp _stricmp
27 diff --git a/nse_libssh2.cc b/nse_libssh2.cc
28 index bf721b6..1fafe7f 100644
29 --- a/nse_libssh2.cc
30 +++ b/nse_libssh2.cc
31 @@ -58,7 +58,7 @@ struct ssh_userdata {
32
33
34 #if defined(_MSC_VER) && _MSC_VER < 1900
35 -#define snprintf c99_snprintf
36 +//#define snprintf c99_snprintf
37 #define vsnprintf c99_vsnprintf
38
39 __inline int c99_vsnprintf(char *outBuf, size_t size, const char *format, va_list ap) {