From 1a09f3b991b47db6ddc02daf105aa33cce4ecdbe Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 24 Feb 2013 15:25:53 -0600 Subject: [PATCH] Fix libtdekrb FTBFS on older Ubuntu versions --- lib/libtdekrb/src/tdekrbclientsocket.cpp | 6 +++++- lib/libtdekrb/src/tdekrbserversocket.cpp | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/libtdekrb/src/tdekrbclientsocket.cpp b/lib/libtdekrb/src/tdekrbclientsocket.cpp index 35544c2..4b2a5a6 100644 --- a/lib/libtdekrb/src/tdekrbclientsocket.cpp +++ b/lib/libtdekrb/src/tdekrbclientsocket.cpp @@ -34,6 +34,10 @@ #include "tdekrbclientsocket.h" +#if SASL_VERSION_FULL < 0x020119 +typedef int (*sasl_callback_ft)(void); +#endif // SASL_VERSION_FULL + #define NET_SEC_BUF_SIZE (2048) // When control comes back from processEvents() my object may be completely gone! This attempts to mitigate the risk @@ -1025,4 +1029,4 @@ int TDEKerberosClientSocket::initializeKerberosInterface() { if (kerberosInitLoopTimer) kerberosInitLoopTimer->start(0, TRUE); return 0; -} \ No newline at end of file +} diff --git a/lib/libtdekrb/src/tdekrbserversocket.cpp b/lib/libtdekrb/src/tdekrbserversocket.cpp index 374bda0..72e4df8 100644 --- a/lib/libtdekrb/src/tdekrbserversocket.cpp +++ b/lib/libtdekrb/src/tdekrbserversocket.cpp @@ -34,6 +34,10 @@ #include "tdekrbserversocket.h" +#if SASL_VERSION_FULL < 0x020119 +typedef int (*sasl_callback_ft)(void); +#endif // SASL_VERSION_FULL + #define NET_SEC_BUF_SIZE (2048) // When control comes back from processEvents() my object may be completely gone! This attempts to mitigate the risk @@ -1058,4 +1062,4 @@ int TDEKerberosServerSocket::initializeKerberosInterface() { if (kerberosInitLoopTimer) kerberosInitLoopTimer->start(0, TRUE); return 0; -} \ No newline at end of file +}