diff -ru libgpg-error/tests/t-lock.c libgpg-error-fixed/tests/t-lock.c
--- libgpg-error/tests/t-lock.c	2014-01-24 21:50:09.000000000 +0100
+++ libgpg-error-fixed/tests/t-lock.c	2014-08-17 22:10:24.000000000 +0200
@@ -24,6 +24,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include <assert.h>
 #ifdef _WIN32
 # include <windows.h>
