diff options
Diffstat (limited to 'testsuites/samples/pppd')
-rw-r--r-- | testsuites/samples/pppd/init.c | 15 | ||||
-rw-r--r-- | testsuites/samples/pppd/pppdapp.c | 6 |
2 files changed, 15 insertions, 6 deletions
diff --git a/testsuites/samples/pppd/init.c b/testsuites/samples/pppd/init.c index 0e534e03d2..cf0d134710 100644 --- a/testsuites/samples/pppd/init.c +++ b/testsuites/samples/pppd/init.c @@ -2,23 +2,26 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <rtems/rtems_bsdnet.h> -#include <rtems/rtemspppd.h> #define CONFIGURE_INIT #include "system.h" -#include "netconfig.h" - +#if !BSP_SMALL_MEMORY +#include <rtems/rtems_bsdnet.h> +#include <rtems/rtemspppd.h> +#include "netconfig.h" extern int pppdapp_initialize(void); - +#endif rtems_task Init(rtems_task_argument argument) { +#if BSP_SMALL_MEMORY + printf("NO NETWORKING. MEMORY TOO SMALL"); +#else /* initialize network */ rtems_bsdnet_initialize_network(); rtems_pppd_initialize(); pppdapp_initialize(); - +#endif rtems_task_delete(RTEMS_SELF); } diff --git a/testsuites/samples/pppd/pppdapp.c b/testsuites/samples/pppd/pppdapp.c index 1c75f1de80..0e216ff406 100644 --- a/testsuites/samples/pppd/pppdapp.c +++ b/testsuites/samples/pppd/pppdapp.c @@ -1,4 +1,8 @@ +#include <bsp.h> + +#if !BSP_SMALL_MEMORY + #include <stdio.h> #include <rtems/rtemspppd.h> #include "system.h" @@ -144,3 +148,5 @@ int pppdapp_initialize(void) return ( iReturn ); } + +#endif |