summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-04-21 16:22:20 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-04-27 15:12:01 +0200
commit9534243f6849d1938195c1f27adaa5745056f138 (patch)
treebc992482d97560154af0a576d052c78cda6bb4ab /platform/x11
parent78c1264e14804a06c6d03072c8c57820fde4e148 (diff)
downloadmupdf-9534243f6849d1938195c1f27adaa5745056f138.tar.xz
Include required system headers.
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/curl_stream.c4
-rw-r--r--platform/x11/jstest_main.c3
-rw-r--r--platform/x11/pdfapp.c5
-rw-r--r--platform/x11/pdfapp.h2
-rw-r--r--platform/x11/x11_image.c4
-rw-r--r--platform/x11/x11_main.c4
6 files changed, 22 insertions, 0 deletions
diff --git a/platform/x11/curl_stream.c b/platform/x11/curl_stream.c
index 5bf87de0..db5a1413 100644
--- a/platform/x11/curl_stream.c
+++ b/platform/x11/curl_stream.c
@@ -1,6 +1,10 @@
/* Simple example fz_stream implementation using curl */
#include "mupdf/fitz.h"
+
+#include <string.h>
+#include <stdlib.h>
+
#include "curl_stream.h"
#define CURL_STATICLIB
diff --git a/platform/x11/jstest_main.c b/platform/x11/jstest_main.c
index 36b32155..bdac8be5 100644
--- a/platform/x11/jstest_main.c
+++ b/platform/x11/jstest_main.c
@@ -1,6 +1,9 @@
#include "pdfapp.h"
+#include <string.h>
#include <ctype.h>
+#include <stdlib.h>
+#include <stdio.h>
/*
A useful bit of bash script to call this is:
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index 6d2ca473..e3485489 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -1,6 +1,11 @@
#include "pdfapp.h"
#include "curl_stream.h"
+#include <string.h>
+#include <limits.h>
+#include <stdlib.h>
+#include <stdio.h>
+
#define BEYOND_THRESHHOLD 40
#ifndef PATH_MAX
#define PATH_MAX (1024)
diff --git a/platform/x11/pdfapp.h b/platform/x11/pdfapp.h
index 8dd6e6f1..54e99f95 100644
--- a/platform/x11/pdfapp.h
+++ b/platform/x11/pdfapp.h
@@ -4,6 +4,8 @@
#include "mupdf/fitz.h"
#include "mupdf/pdf.h"
+#include <time.h>
+
/*
* Utility object for handling a pdf application / view
* Takes care of PDF loading and displaying and navigation,
diff --git a/platform/x11/x11_image.c b/platform/x11/x11_image.c
index 96bd298f..4c10987c 100644
--- a/platform/x11/x11_image.c
+++ b/platform/x11/x11_image.c
@@ -14,6 +14,10 @@
#include "mupdf/fitz.h"
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <sys/ipc.h>
diff --git a/platform/x11/x11_main.c b/platform/x11/x11_main.c
index 421672de..4c96ecc9 100644
--- a/platform/x11/x11_main.c
+++ b/platform/x11/x11_main.c
@@ -7,6 +7,10 @@
#include <X11/keysym.h>
#include <X11/XF86keysym.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>