[gcr] build: Fix warnings by including necessary headers
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] build: Fix warnings by including necessary headers
- Date: Tue, 4 Dec 2012 14:00:16 +0000 (UTC)
commit b9253e1d05776ce561a4dc83289bf887eee1e390
Author: Stef Walter <stefw gnome org>
Date: Tue Dec 4 13:57:22 2012 +0100
build: Fix warnings by including necessary headers
gck/gck-debug.c | 4 ++++
gcr/gcr-gnupg-process.c | 1 +
gcr/tests/console-interaction.c | 2 ++
3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gck/gck-debug.c b/gck/gck-debug.c
index 7bd3c61..0ad5b05 100644
--- a/gck/gck-debug.c
+++ b/gck/gck-debug.c
@@ -29,6 +29,10 @@
#include <p11-kit/pkcs11.h>
+#include <sys/types.h>
+
+#include <unistd.h>
+
#ifdef WITH_DEBUG
static gsize initialized_flags = 0;
diff --git a/gcr/gcr-gnupg-process.c b/gcr/gcr-gnupg-process.c
index fc37171..4677b46 100644
--- a/gcr/gcr-gnupg-process.c
+++ b/gcr/gcr-gnupg-process.c
@@ -35,6 +35,7 @@
#include <fcntl.h>
#include <errno.h>
#include <string.h>
+#include <unistd.h>
/**
* GcrGnupgProcessFlags:
diff --git a/gcr/tests/console-interaction.c b/gcr/tests/console-interaction.c
index 6d75207..c642798 100644
--- a/gcr/tests/console-interaction.c
+++ b/gcr/tests/console-interaction.c
@@ -32,6 +32,8 @@
#include "console-interaction.h"
+#include <unistd.h>
+
/*
* WARNING: This is not the example you're looking for [slow hand wave]. This
* is not industrial strength, it's just for testing. It uses embarassing
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]