Home GnuPG

Fix build without threads
abcdfa7964daUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix build without threads

* src/gen-posix-lock-obj.c: properly guard inclusioin of pthread.h
* tests/t-lock.c: likewise
* tests/t-poll.c: likewise

Although ./configure checks for thread support, gen-posix-lock-obj and
two tests still include pthread.h unconditionally.

Guard that inclusion using the same condition as all other uses of
pthread-related code.

  • Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Details

Provenance
Yann E. MORIN <yann.morin.1998@free.fr>Authored on Jul 10 2016, 11:38 AM
wernerCommitted on Jul 12 2016, 10:42 AM
Parents
rE65e967627b3d: Define EWOULDBLOCK in case it is not defined
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rEabcdfa7964da: Fix build without threads (authored by Yann E. MORIN <yann.morin.1998@free.fr>).Jul 12 2016, 10:42 AM