aboutsummaryrefslogtreecommitdiffstats
path: root/pacredir.h
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-10-21 14:08:48 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-10-21 14:08:48 +0200
commit0925b30990cbaa485318b13822023de6a8060e50 (patch)
treee744f3c8f3a0a17fbc7dd9e81b362ff77e58b602 /pacredir.h
parenta34a2462a83738683c460db6250ff9da45fa8ec8 (diff)
downloadpacredir-0925b30990cbaa485318b13822023de6a8060e50.tar.gz
pacredir-0925b30990cbaa485318b13822023de6a8060e50.tar.zst
use ISO C11 standard and move includes to header file
Diffstat (limited to 'pacredir.h')
-rw-r--r--pacredir.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/pacredir.h b/pacredir.h
index eb54769..b30786e 100644
--- a/pacredir.h
+++ b/pacredir.h
@@ -8,6 +8,39 @@
#ifndef _PACREDIR_H
#define _PACREDIR_H
+#define _GNU_SOURCE
+
+/* glibc headers */
+#include <arpa/inet.h>
+#include <assert.h>
+#include <getopt.h>
+#include <math.h>
+#include <net/if.h>
+#include <signal.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/socket.h>
+#include <sys/stat.h>
+#include <time.h>
+
+/* Avahi headers */
+#include <avahi-client/lookup.h>
+#include <avahi-common/error.h>
+#include <avahi-common/simple-watch.h>
+
+/* various headers needing linker options */
+#include <curl/curl.h>
+#include <iniparser.h>
+#include <microhttpd.h>
+#include <pthread.h>
+
+/* compile time configuration */
+#include "arch.h"
+#include "config.h"
+#include "version.h"
+
+
/* services */
struct services {
/* network port */