fix compilation
authorJann Horn <jann@thejh.net>
Tue, 9 Jun 2015 12:41:08 +0000 (14:41 +0200)
committerJann Horn <jann@thejh.net>
Tue, 9 Jun 2015 12:41:08 +0000 (14:41 +0200)
bufio.h
compile.sh
header.h

diff --git a/bufio.h b/bufio.h
index 3ad0861..358c368 100644 (file)
--- a/bufio.h
+++ b/bufio.h
@@ -1,8 +1,6 @@
 #ifndef _BUFIO_HEADER
 #define _BUFIO_HEADER
 
 #ifndef _BUFIO_HEADER
 #define _BUFIO_HEADER
 
-#include <ev.h>
-
 /* BUFFER CHAIN */
 typedef struct bufio_chain_entry bufio_chain_entry;
 
 /* BUFFER CHAIN */
 typedef struct bufio_chain_entry bufio_chain_entry;
 
index 6e3b1c6..5a4327b 100755 (executable)
@@ -25,7 +25,8 @@ echo "going ahead with CFLAGS=\"$CFLAGS\"..." >&2
 
 # generate header
 set +f
 
 # 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
 set -f
 for source_file in $(ls|grep '\.c$'); do
   echo "extracting header data from $source_file..." >&2
index ac8c368..97b5893 100644 (file)
--- a/header.h
+++ b/header.h
@@ -1,5 +1,6 @@
 #include <ev.h>
 #include <assert.h>
 #include <ev.h>
 #include <assert.h>
+#include <stddef.h>
 
 /***** COMPILER-SPECIFIC STUFF *****/
 #ifdef __GNUC__
 
 /***** COMPILER-SPECIFIC STUFF *****/
 #ifdef __GNUC__