summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/pppd/init.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2009-04-28 05:04:11 +0000
committerChris Johns <chrisj@rtems.org>2009-04-28 05:04:11 +0000
commitc0ec0d82d3c7206d3d2cda7cf93514f22f8ac504 (patch)
treee714862f2531e56ff216c285df9131731b39cc0c /testsuites/samples/pppd/init.c
parent2009-04-28 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-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/init.c')
-rw-r--r--testsuites/samples/pppd/init.c15
1 files changed, 9 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);
}