Skip to content

Commit 10b9369

Browse files
committed
avoid type redefine warning in net-snmp-config.h
1 parent 37e6594 commit 10b9369

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/scripts/windows/build_task.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ if "%PLATFORM%" == "x86" (
5656
set CFLAGS=/W1 /WX
5757
)
5858

59+
patch --binary %DEPS_DIR%\include\net-snmp\net-snmp-config.h -i %~dp0net-snmp-config.h.patch.bin
60+
5961
cmd /c configure.bat ^
6062
--enable-snapshot-build ^
6163
--disable-debug-pack ^
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--- net-snmp-config.h 2019-07-01 13:04:57.401354900 +0200
2+
+++ net-snmp-config.h 2022-05-04 11:52:42.229867900 +0200
3+
@@ -1365,9 +1365,9 @@
4+
# define HAVE_SSIZE_T
5+
#elif defined(_MSC_VER)
6+
# ifdef _M_X64
7+
-typedef __int64 ssize_t;
8+
+// prevent redefine warning typedef __int64 ssize_t;
9+
# else
10+
-typedef __int32 ssize_t;
11+
+// prevent redefine warning typedef __int32 ssize_t;
12+
# endif
13+
#endif
14+

0 commit comments

Comments
 (0)