aboutsummaryrefslogtreecommitdiff
path: root/libX11
diff options
context:
space:
mode:
Diffstat (limited to 'libX11')
-rw-r--r--libX11/src/ErrDes.c1
-rw-r--r--libX11/src/GetDflt.c1
-rw-r--r--libX11/src/KeysymStr.c1
-rw-r--r--libX11/src/XlibInt.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/libX11/src/ErrDes.c b/libX11/src/ErrDes.c
index ef5edad6c..f5f610fac 100644
--- a/libX11/src/ErrDes.c
+++ b/libX11/src/ErrDes.c
@@ -55,6 +55,7 @@ SOFTWARE.
#include <X11/Xos.h>
#include "Xresource.h"
#include <stdio.h>
+#include <unistd.h>
#ifndef ERRORDB
#ifndef XERRORDB
diff --git a/libX11/src/GetDflt.c b/libX11/src/GetDflt.c
index fa7d366f5..d32b3c65a 100644
--- a/libX11/src/GetDflt.c
+++ b/libX11/src/GetDflt.c
@@ -86,6 +86,7 @@ SOFTWARE.
#include <X11/Xos_r.h>
#endif
#include <stdio.h>
+#include <unistd.h>
#include <ctype.h>
diff --git a/libX11/src/KeysymStr.c b/libX11/src/KeysymStr.c
index c7c470468..00483085a 100644
--- a/libX11/src/KeysymStr.c
+++ b/libX11/src/KeysymStr.c
@@ -34,6 +34,7 @@ in this Software without prior written authorization from The Open Group.
#include "Xresinternal.h"
#include <stdio.h> /* sprintf */
+#include <unistd.h> /* snprintf */
#define NEEDVTABLE
#include "ks_tables.h"
diff --git a/libX11/src/XlibInt.c b/libX11/src/XlibInt.c
index c0a45d41e..9ffb9fb3c 100644
--- a/libX11/src/XlibInt.c
+++ b/libX11/src/XlibInt.c
@@ -43,6 +43,7 @@ from The Open Group.
#include <X11/Xpoll.h>
#include <assert.h>
#include <stdio.h>
+#include <unistd.h>
#ifdef WIN32
#include <direct.h>
#endif