diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-06-17 09:36:25 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-06-17 09:36:25 +0100 |
commit | dbd56b5c30b26127b97504cbd560bf9460a04d26 (patch) | |
tree | 20a4d4167e3f7640a41e08b05ec33c11ed5f895b /extras/mini-os/main.c | |
parent | 96d736511395573403068ba54b594c49009ddd3a (diff) | |
download | xen-dbd56b5c30b26127b97504cbd560bf9460a04d26.tar.gz xen-dbd56b5c30b26127b97504cbd560bf9460a04d26.tar.bz2 xen-dbd56b5c30b26127b97504cbd560bf9460a04d26.zip |
minios,stubdom: Add OBJ_DIR parameter to compile outside sources,
which permits to easily compile mini-os in various flavors. Also clean
some parts of stubdom build.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/main.c')
-rw-r--r-- | extras/mini-os/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extras/mini-os/main.c b/extras/mini-os/main.c index d31a4b4c2d..6c26e96057 100644 --- a/extras/mini-os/main.c +++ b/extras/mini-os/main.c @@ -4,6 +4,7 @@ * Samuel Thibault <Samuel.Thibault@eu.citrix.net>, October 2007 */ +#ifdef HAVE_LIBC #include <os.h> #include <sched.h> #include <console.h> @@ -112,7 +113,7 @@ static void call_main(void *p) } \ } - PARSE_ARGS(start_info.cmd_line, argc++, ); + PARSE_ARGS((char*)start_info.cmd_line, argc++, ); #ifdef CONFIG_QEMU PARSE_ARGS(domargs, argc++, ); #endif @@ -121,7 +122,7 @@ static void call_main(void *p) argv[0] = "main"; argc = 1; - PARSE_ARGS(start_info.cmd_line, argv[argc++] = c, *c++ = 0) + PARSE_ARGS((char*)start_info.cmd_line, argv[argc++] = c, *c++ = 0) #ifdef CONFIG_QEMU PARSE_ARGS(domargs, argv[argc++] = c, *c++ = 0) #endif @@ -168,3 +169,4 @@ int app_main(start_info_t *si) main_thread = create_thread("main", call_main, si); return 0; } +#endif |