diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-07-14 15:20:00 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-07-14 15:20:00 +0000 |
commit | 08d0de3ade0e6866aa3c09ffcc028d25233fe179 (patch) | |
tree | 92cf24c5c1d1a97bc749dd3b6e345ab4e4e43c1e /pjsip-apps/src/samples | |
parent | 8fe835ee6304768e39a285c878e9d3c0fe3b8957 (diff) |
Attempt to get some applications linked for RTEMS target, just to get the footprint calculation working
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@604 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/samples')
-rw-r--r-- | pjsip-apps/src/samples/footprint.c | 11 | ||||
-rw-r--r-- | pjsip-apps/src/samples/main_rtems.c | 12 |
2 files changed, 22 insertions, 1 deletions
diff --git a/pjsip-apps/src/samples/footprint.c b/pjsip-apps/src/samples/footprint.c index 06142f67..7f631a79 100644 --- a/pjsip-apps/src/samples/footprint.c +++ b/pjsip-apps/src/samples/footprint.c @@ -529,8 +529,17 @@ int dummy_function() } -int main() +int test_main() { return dummy_function(); } +#if defined(PJ_RTEMS) && PJ_RTEMS!=0 +# include "../../pjlib/src/pjlib-test/main_rtems.c" +#else +int main() +{ + return test_main(); +} +#endif + diff --git a/pjsip-apps/src/samples/main_rtems.c b/pjsip-apps/src/samples/main_rtems.c new file mode 100644 index 00000000..d26605ac --- /dev/null +++ b/pjsip-apps/src/samples/main_rtems.c @@ -0,0 +1,12 @@ + +/* + * !! OIY OIY !! + * + * The purpose of this file is only to get the executable linked. I haven't + * actually tried to run this on RTEMS!! + * + */ + +#include "../../pjlib/src/pjlib-test/main_rtems.c" + + |