From c0ec0d82d3c7206d3d2cda7cf93514f22f8ac504 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Tue, 28 Apr 2009 05:04:11 +0000 Subject: 2009-04-28 Chris Johns * fileio/init.c, fileio/system.h, iostream/init.cc, loopback/init.c, pppd/init.c, pppd/pppdapp.c: Do not build if BSP_SMALL_MEMORY is defined. Remove this code once a better way is supported by the build system. --- testsuites/samples/pppd/init.c | 15 +++++++++------ testsuites/samples/pppd/pppdapp.c | 6 ++++++ 2 files changed, 15 insertions(+), 6 deletions(-) (limited to 'testsuites/samples/pppd') 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 #include #include -#include -#include #define CONFIGURE_INIT #include "system.h" -#include "netconfig.h" - +#if !BSP_SMALL_MEMORY +#include +#include +#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 + +#if !BSP_SMALL_MEMORY + #include #include #include "system.h" @@ -144,3 +148,5 @@ int pppdapp_initialize(void) return ( iReturn ); } + +#endif -- cgit v1.2.3