summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2014-09-13 17:13:44 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-04-10 15:57:16 +0100
commit8a511dad53774693ed818d54d7896e1663942b18 (patch)
tree5723de7c3b0edf08126b7ec4abd46d05c81f1c4a
parentfd22b62ae6380ddb00fa4c750f5ce175d2a6e76f (diff)
Include unistd.h for getpid()
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: David Macek <david.macek.0@gmail.com>
-rw-r--r--src/error.c3
-rw-r--r--src/iceauth.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/error.c b/src/error.c
index 3e5e5e9..9187256 100644
--- a/src/error.c
+++ b/src/error.c
@@ -32,10 +32,9 @@ Author: Ralph Mor, X Consortium
#include <X11/ICE/ICElib.h>
#include "ICElibint.h"
#include <stdio.h>
-
+#include <unistd.h>
#include <errno.h>
-
void
_IceErrorBadMinor (
IceConn iceConn,
diff --git a/src/iceauth.c b/src/iceauth.c
index ef66626..ed31683 100644
--- a/src/iceauth.c
+++ b/src/iceauth.c
@@ -40,6 +40,8 @@ Author: Ralph Mor, X Consortium
#include <bsd/stdlib.h> /* for arc4random_buf() */
#endif
+#include <unistd.h>
+
static int was_called_state;
/*