From 8e918fc821c36fe829e1f88578cade4eef90d531 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 6 Feb 2008 20:50:51 +0000 Subject: sorry for last ceckin :( build works now --- anytun.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/anytun.cpp b/anytun.cpp index a55145e..11aa8f3 100644 --- a/anytun.cpp +++ b/anytun.cpp @@ -290,6 +290,10 @@ void* receiver(void* p) #define MIN_GCRYPT_VERSION "1.2.3" #define GCRYPT_SEC_MEM 32768 // 32k secure memory +// make libgcrypt thread safe +extern "C" { +GCRY_THREAD_OPTION_PTHREAD_IMPL; +} void initLibGCrypt() { @@ -328,12 +332,6 @@ void initLibGCrypt() } } - -// make libgcrypt thread safe -extern "C" { -GCRY_THREAD_OPTION_PTHREAD_IMPL; -} - int main(int argc, char* argv[]) { std::cout << "anytun - secure anycast tunneling protocol" << std::endl; -- cgit v1.2.3