summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2014-09-09 14:49:18 +0200
committerStef Walter <stefw@gnome.org>2014-09-09 14:49:18 +0200
commit2a7183aa9828a9ad69bf815d81068ac0692b4d05 (patch)
tree95038763255560df02e57c936eb6c940c2372a61
parenta343d21ea4edc4435011f79e527a2c694f4ccc41 (diff)
egg: Fix use of libgcrypt GCRY_THREAD_OPTION_PTHREAD_IMPL
On certain libgcrypt versions (like 1.5.0) we need to include errno.h or compilation fails: ../egg/egg-libgcrypt.c:54:1: error: 'ENOMEM' undeclared (first use in this function)
-rw-r--r--egg/egg-libgcrypt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/egg/egg-libgcrypt.c b/egg/egg-libgcrypt.c
index e9a28b0..a833a9d 100644
--- a/egg/egg-libgcrypt.c
+++ b/egg/egg-libgcrypt.c
@@ -26,6 +26,8 @@
#include <gcrypt.h>
+#include <errno.h>
+
EGG_SECURE_DECLARE (libgcrypt);
static void