summaryrefslogtreecommitdiff
path: root/pjsip-apps/src
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip-apps/src')
-rw-r--r--pjsip-apps/src/pjsua/main_rtems.c12
-rw-r--r--pjsip-apps/src/samples/footprint.c11
-rw-r--r--pjsip-apps/src/samples/main_rtems.c12
3 files changed, 34 insertions, 1 deletions
diff --git a/pjsip-apps/src/pjsua/main_rtems.c b/pjsip-apps/src/pjsua/main_rtems.c
new file mode 100644
index 00000000..d26605ac
--- /dev/null
+++ b/pjsip-apps/src/pjsua/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"
+
+
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"
+
+