diff options
author | Giacomo Bagnoli <g.bagnoli@asidev.com> | 2010-03-10 11:45:00 +0100 |
---|---|---|
committer | Giacomo Bagnoli <g.bagnoli@asidev.com> | 2010-03-10 11:45:00 +0100 |
commit | b953328f046108a7ddf5e06486a39444a47338e7 (patch) | |
tree | ae60f06abc92b1c222c0c80d279a011c691b848e /src | |
parent | c6616c42d85c6e2ddc3fda692fdfd0223c8ec635 (diff) |
Fixed compilation issues with SCHED_DEADLINE. Still missing complete support
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 8 | ||||
-rw-r--r-- | src/rt-app.h | 2 | ||||
-rw-r--r-- | src/rt-app_args.h | 2 | ||||
-rw-r--r-- | src/rt-app_types.h | 12 |
4 files changed, 12 insertions, 12 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 63bb8e2..d63f04f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,6 @@ ACLOCAL_AMFLAGS = -I m4 - +AM_CPPFLAGS = -I$(srcdir)/../libdl/ bin_PROGRAMS = rt-app -rt_app_SOURCES= dl_syscalls.h rt-app_args.h rt-app_utils.h rt-app.h rt-app_types.h \ - dl_syscalls.c rt-app_args.c rt-app_utils.c rt-app.c -rt_app_LDADD = $(QRESLIB) +rt_app_SOURCES= rt-app_types.h rt-app_args.h rt-app_utils.h rt-app_utils.c rt-app_args.c rt-app.h rt-app.c # dl_syscalls.c dl_syscalls.h +rt_app_LDADD = $(QRESLIB) ../libdl/libdl.a + diff --git a/src/rt-app.h b/src/rt-app.h index f109af1..a8c0f20 100644 --- a/src/rt-app.h +++ b/src/rt-app.h @@ -31,9 +31,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include <string.h> #include <signal.h> #include <sys/mman.h> /* for memlock */ +#include "config.h" #include "rt-app_types.h" #include "rt-app_args.h" -#include "config.h" #ifdef AQUOSA #include <aquosa/qres_lib.h> diff --git a/src/rt-app_args.h b/src/rt-app_args.h index b7609ed..6e2e6e8 100644 --- a/src/rt-app_args.h +++ b/src/rt-app_args.h @@ -26,8 +26,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include <stdio.h> #include <string.h> #include <sched.h> -#include "rt-app_utils.h" #include "rt-app_types.h" +#include "rt-app_utils.h" #define DEFAULT_THREAD_PRIORITY 10 diff --git a/src/rt-app_types.h b/src/rt-app_types.h index 4721307..92a9815 100644 --- a/src/rt-app_types.h +++ b/src/rt-app_types.h @@ -20,18 +20,18 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #ifndef _RTAPP_TYPES_H_ #define _RTAPP_TYPES_H_ +#include "config.h" +#ifdef DLSCHED +#include "dl_syscalls.h" +#endif #include <sched.h> #include <time.h> #include <stdio.h> #include <sched.h> -#include "config.h" #ifdef AQUOSA #include <aquosa/qres_lib.h> #endif /* AQUOSA */ -#ifdef DEADLINE -#include "dl_syscalls.h" -#endif typedef enum policy_t { @@ -41,7 +41,7 @@ typedef enum policy_t #ifdef AQUOSA , aquosa = 1000 #endif -#ifdef DEADLINE +#ifdef DLSCHED , deadline = SCHED_DEADLINE #endif } policy_t; @@ -68,7 +68,7 @@ struct thread_data { qres_params_t params; #endif -#ifdef DEADLINE +#ifdef DLSCHED struct sched_param_ex dl_params; #endif }; |