diff options
author | Chris Johns <chrisj@rtems.org> | 2009-04-28 05:04:11 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2009-04-28 05:04:11 +0000 |
commit | c0ec0d82d3c7206d3d2cda7cf93514f22f8ac504 (patch) | |
tree | e714862f2531e56ff216c285df9131731b39cc0c /testsuites/samples/pppd | |
parent | 2009-04-28 Chris Johns <chrisj@rtems.org> (diff) | |
download | rtems-c0ec0d82d3c7206d3d2cda7cf93514f22f8ac504.tar.bz2 |
2009-04-28 Chris Johns <chrisj@rtems.org>
* 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.
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 |