aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-06 16:20:13 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-09 16:35:32 -0500
commit42e747e4fe5648967c1ead5ae327b5fbbe66f2e5 (patch)
tree44d58ef7b2458d3c71e52f6441077100c218e04f /include
parent35b88760be5b5dbda859f4697702efc0b3cd2663 (diff)
avoid including header files directly
The kernel warns against including header files directly. For good reason: our previous approach (just -I$KERNEL/include) caused all kinds of files to be included that should have come from /usr/include instead. This patch rewrites the Makfile so that the (few) needed headers are copied into the liblitmus src tree before compiling the library. This avoids having to specify the kernel include directories with -I, and also makes it easier to link against liblitmus (external applications do not need to know where the kernel is). Finally, this allows us to enable -Werror.
Diffstat (limited to 'include')
-rw-r--r--include/litmus.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/litmus.h b/include/litmus.h
index b798c92..c4c4129 100644
--- a/include/litmus.h
+++ b/include/litmus.h
@@ -5,13 +5,13 @@
5extern "C" { 5extern "C" {
6#endif 6#endif
7 7
8#include <sys/types.h>
9
8/* Include kernel header. 10/* Include kernel header.
9 * This is required for the rt_param 11 * This is required for the rt_param
10 * and control_page structures. 12 * and control_page structures.
11 */ 13 */
12#include <litmus/rt_param.h> 14#include "litmus/rt_param.h"
13
14#include <sys/types.h>
15 15
16#include "cycles.h" /* for null_call() */ 16#include "cycles.h" /* for null_call() */
17 17