aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/threading/thread.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-06-04 16:26:58 +0200
committerMartin Willi <martin@revosec.ch>2014-06-04 16:26:58 +0200
commit8c55f8ef42816a695895990cf89697a30c235355 (patch)
treec4aa8a3f0f08166b37369bb93132d0ece470af42 /src/libstrongswan/threading/thread.c
parentb4c51061c3c649e948324d1f3ad37ef6e48f8b96 (diff)
parentd930d184177ef352c4b5def4e5848463819435ec (diff)
downloadstrongswan-8c55f8ef42816a695895990cf89697a30c235355.tar.bz2
strongswan-8c55f8ef42816a695895990cf89697a30c235355.tar.xz
Merge branch 'win'
Ports the strongSwan core libraries and some plugins to the Windows platform using a MinGW based toolchain. Beside generic platform abstraction and the windows.[ch] compatibility layer, this merge introduces a Windows native threading backend and a charon-svc Windows IKE service. Travis adds a MinGW cross-compile build to Windows, and further enables -Werror to let builds fail for all compiler warnings with gcc and Clang.
Diffstat (limited to 'src/libstrongswan/threading/thread.c')
-rw-r--r--src/libstrongswan/threading/thread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstrongswan/threading/thread.c b/src/libstrongswan/threading/thread.c
index 0adfb31d0..593f44a44 100644
--- a/src/libstrongswan/threading/thread.c
+++ b/src/libstrongswan/threading/thread.c
@@ -301,6 +301,9 @@ static void *thread_main(private_thread_t *this)
#ifdef HAVE_GETTID
DBG2(DBG_LIB, "created thread %.2d [%u]",
this->id, gettid());
+#elif defined(WIN32)
+ DBG2(DBG_LIB, "created thread %.2d [%p]",
+ this->id, this->thread_id.p);
#else
DBG2(DBG_LIB, "created thread %.2d [%lx]",
this->id, (u_long)this->thread_id);