-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
adam
committed
Sep 30, 2012
1 parent
6821ec0
commit 8602c3d
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
$NetBSD: patch-kldap_ber.cpp,v 1.1 2012/09/30 13:15:04 adam Exp $ | ||
|
||
Fix building with Clang. | ||
|
||
--- kldap/ber.cpp.orig 2012-09-30 12:13:44.000000000 +0000 | ||
+++ kldap/ber.cpp | ||
@@ -128,7 +128,11 @@ int Ber::printf( const QString &format, | ||
{ | ||
char fmt[2]; | ||
va_list args; | ||
+#ifdef __clang__ | ||
+ va_start ( args, format.unicode() ); | ||
+#else | ||
va_start ( args, format ); | ||
+#endif | ||
fmt[1] = '\0'; | ||
|
||
int i = 0, ret = 0; | ||
@@ -233,7 +237,11 @@ int Ber::scanf( const QString &format, . | ||
{ | ||
char fmt[2]; | ||
va_list args; | ||
+#ifdef __clang__ | ||
+ va_start ( args, format.unicode() ); | ||
+#else | ||
va_start ( args, format ); | ||
+#endif | ||
fmt[1] = '\0'; | ||
|
||
int i = 0, ret = 0; |