SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
23
net/barrier/patches/patch-src_lib_barrier_ProtocolUtil_cpp
Normal file
23
net/barrier/patches/patch-src_lib_barrier_ProtocolUtil_cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
Rename function to avoid ambiguity on platforms where va_list is void *.
|
||||
|
||||
Index: src/lib/barrier/ProtocolUtil.cpp
|
||||
--- src/lib/barrier/ProtocolUtil.cpp.orig
|
||||
+++ src/lib/barrier/ProtocolUtil.cpp
|
||||
@@ -82,7 +82,7 @@ ProtocolUtil::vwritef(barrier::IStream* stream,
|
||||
|
||||
// fill buffer
|
||||
UInt8* buffer = new UInt8[size];
|
||||
- writef(buffer, fmt, args);
|
||||
+ writef_(buffer, fmt, args);
|
||||
|
||||
try {
|
||||
// write buffer
|
||||
@@ -349,7 +349,7 @@ ProtocolUtil::getLength(const char* fmt, va_list args)
|
||||
}
|
||||
|
||||
void
|
||||
-ProtocolUtil::writef(void* buffer, const char* fmt, va_list args)
|
||||
+ProtocolUtil::writef_(void* buffer, const char* fmt, va_list args)
|
||||
{
|
||||
UInt8* dst = static_cast<UInt8*>(buffer);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue