Adapt to slweb's include paths

slweb puts its header files into its own directory in order to avoid
potential name clashing.
This commit is contained in:
Xavier Del Campo Romero 2023-07-21 01:24:10 +02:00
parent 6e5c091d8f
commit e49f1da7ae
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
5 changed files with 8 additions and 8 deletions

2
auth.c
View File

@ -1,7 +1,7 @@
#include "auth.h"
#include "hex.h"
#include "http.h"
#include "jwt.h"
#include <slweb/http.h>
#include <cjson/cJSON.h>
#include <dynstr.h>
#include <openssl/sha.h>

2
auth.h
View File

@ -1,7 +1,7 @@
#ifndef AUTH_H
#define AUTH_H
#include "http.h"
#include <slweb/http.h>
#include <stdbool.h>
struct auth *auth_alloc(const char *dir);

6
main.c
View File

@ -2,12 +2,12 @@
#include "auth.h"
#include "cftw.h"
#include "handler.h"
#include "hex.h"
#include "http.h"
#include "page.h"
#include "style.h"
#include "wildcard_cmp.h"
#include <slweb/handler.h>
#include <slweb/http.h>
#include <slweb/wildcard_cmp.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <dynstr.h>

4
page.c
View File

@ -1,8 +1,8 @@
#define _POSIX_C_SOURCE 200809L
#include "page.h"
#include "http.h"
#include "html.h"
#include <slweb/html.h>
#include <slweb/http.h>
#include <dynstr.h>
#include <dirent.h>
#include <fcntl.h>

2
page.h
View File

@ -1,7 +1,7 @@
#ifndef PAGE_H
#define PAGE_H
#include "http.h"
#include <slweb/http.h>
#include <stdbool.h>
#include <stddef.h>