diff options
Diffstat (limited to 'pjmedia/src/test')
-rw-r--r-- | pjmedia/src/test/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pjmedia/src/test/main.c b/pjmedia/src/test/main.c index 31acaec7..89d9e659 100644 --- a/pjmedia/src/test/main.c +++ b/pjmedia/src/test/main.c @@ -18,6 +18,17 @@ */ #include "test.h" + +/* Any tests that want to build a linked executable for RTEMS must include + this header to get a default config for the network stack. */ +#if defined(PJ_RTEMS) +# include <bsp.h> +# include <rtems.h> +# include <rtems/rtems_bsdnet.h> +# include "../../../pjlib/include/rtems-network-config.h" +#endif + + int main() { int rc; |