Only set gcrypt thread callback for older version of gcrypt.
authorMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Mon, 2 Jan 2012 21:15:00 +0000 (22:15 +0100)
committerMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Mon, 2 Jan 2012 21:15:00 +0000 (22:15 +0100)
commita2d9e48fcca6cfc2dfadef6dbd3579a30314676b
treef379d06676984a965c6daacbc6fed119dca14f4f
parentc6aaf024651c7d55ac9fb77a53c084efb3adc1a9
Only set gcrypt thread callback for older version of gcrypt.

* agent/gpg-agent.c, dirmngr/dirmngr.c, g13/g13.c, scd/scdaemon.c
(USE_GCRY_THREAD_CBS): New macro, defined if
GCRY_THREAD_OPTION_VERSION is 0.
(fixed_gcry_pth_init) [!USE_GCRY_THREAD_CBS]: Don't define.
(main) [!USE_GCRY_THREAD_CBS]: Do not install thread callbacks.
agent/gpg-agent.c
dirmngr/dirmngr.c
g13/g13.c
scd/scdaemon.c