diff options
author | Werner Koch <[email protected]> | 2004-12-19 17:44:20 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-12-19 17:44:20 +0000 |
commit | 8f22f895e94d45755c99470eb76fd9fd508b5b5f (patch) | |
tree | c428f9546b0f65eeb0189214b1ebabeededd65ec /scd/scdaemon.c | |
parent | * maperror.c (map_assuan_err_with_source): Oops, args were swapped. (diff) | |
download | gnupg-8f22f895e94d45755c99470eb76fd9fd508b5b5f.tar.gz gnupg-8f22f895e94d45755c99470eb76fd9fd508b5b5f.zip |
* query.c (initialize_module_query):
* call-scd.c (initialize_module_call_scd): New.
* w32-pth.c (pth_init): Enable debugging depending on env var.
(pth_self): New.
(pth_mutex_release, pth_mutex_acquire): Implemented directly using
the W32 API.
Diffstat (limited to 'scd/scdaemon.c')
-rw-r--r-- | scd/scdaemon.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c index 901644edc..49e392e7d 100644 --- a/scd/scdaemon.c +++ b/scd/scdaemon.c @@ -351,12 +351,17 @@ main (int argc, char **argv ) Note that this will also do the pth_init. */ #ifndef HAVE_OPENSC #ifdef USE_GNU_PTH +#ifdef HAVE_W32_SYSTEM + /* For W32 we need pth. */ + pth_init (); +#else err = gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pth); if (err) { log_fatal ("can't register GNU Pth with Libgcrypt: %s\n", gpg_strerror (err)); } +#endif #endif /*USE_GNU_PTH*/ #endif /*!HAVE_OPENSC*/ |