From b4d8fbd65d908e44f66416f0d523be20604011b4 Mon Sep 17 00:00:00 2001 From: Jann Horn Date: Tue, 9 Jun 2015 14:41:08 +0200 Subject: [PATCH] fix compilation --- bufio.h | 2 -- compile.sh | 3 ++- header.h | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bufio.h b/bufio.h index 3ad0861..358c368 100644 --- a/bufio.h +++ b/bufio.h @@ -1,8 +1,6 @@ #ifndef _BUFIO_HEADER #define _BUFIO_HEADER -#include - /* BUFFER CHAIN */ typedef struct bufio_chain_entry bufio_chain_entry; diff --git a/compile.sh b/compile.sh index 6e3b1c6..5a4327b 100755 --- a/compile.sh +++ b/compile.sh @@ -25,7 +25,8 @@ echo "going ahead with CFLAGS=\"$CFLAGS\"..." >&2 # generate header set +f -cat *.h > gen/jh.h +# needs correct order, so list them here +cat header.h bufio.h > gen/jh.h set -f for source_file in $(ls|grep '\.c$'); do echo "extracting header data from $source_file..." >&2 diff --git a/header.h b/header.h index ac8c368..97b5893 100644 --- a/header.h +++ b/header.h @@ -1,5 +1,6 @@ #include #include +#include /***** COMPILER-SPECIFIC STUFF *****/ #ifdef __GNUC__ -- 2.20.1