aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--filter.c6
-rw-r--r--html.c6
-rw-r--r--shared.c1
-rw-r--r--ui-plain.c1
-rw-r--r--ui-repolist.c1
-rw-r--r--ui-summary.c1
6 files changed, 16 insertions, 0 deletions
diff --git a/filter.c b/filter.c
index c7037a3..ebf4937 100644
--- a/filter.c
+++ b/filter.c
@@ -8,7 +8,13 @@
#include "cgit.h"
#include "html.h"
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <unistd.h>
+#include <string.h>
+#include <stdlib.h>
#include <dlfcn.h>
+#include <errno.h>
#ifndef NO_LUA
#include <lua.h>
#include <lualib.h>
diff --git a/html.c b/html.c
index a47cff0..155cde5 100644
--- a/html.c
+++ b/html.c
@@ -8,6 +8,12 @@
#include "cgit.h"
#include "html.h"
+#include <unistd.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <errno.h>
/* Percent-encoding of each character, except: a-zA-Z0-9!$()*,./:;@- */
static const char* url_escape_table[256] = {
diff --git a/shared.c b/shared.c
index 3bd2a9e..0431b59 100644
--- a/shared.c
+++ b/shared.c
@@ -7,6 +7,7 @@
*/
#include "cgit.h"
+#include <stdio.h>
struct cgit_repolist cgit_repolist;
struct cgit_context ctx;
diff --git a/ui-plain.c b/ui-plain.c
index 3a2cb47..b787bc3 100644
--- a/ui-plain.c
+++ b/ui-plain.c
@@ -6,6 +6,7 @@
* (see COPYING for full license text)
*/
+#include <stdio.h>
#include "cgit.h"
#include "ui-plain.h"
#include "html.h"
diff --git a/ui-repolist.c b/ui-repolist.c
index 43253ed..edefc4c 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -10,6 +10,7 @@
#include "ui-repolist.h"
#include "html.h"
#include "ui-shared.h"
+#include <strings.h>
static time_t read_agefile(char *path)
{
diff --git a/ui-summary.c b/ui-summary.c
index a5c7078..b0af073 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -13,6 +13,7 @@
#include "ui-refs.h"
#include "ui-blob.h"
#include "ui-shared.h"
+#include <libgen.h>
static int urls;