[rtems-libbsd commit] testsuite/ppp01: Avoid build error on SMP

Sebastian Huber sebh at rtems.org
Thu Nov 12 12:17:01 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    06d83167c7ec593255e3c1db1e410ebd4e2ee257
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=06d83167c7ec593255e3c1db1e410ebd4e2ee257

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Nov 12 13:16:25 2015 +0100

testsuite/ppp01: Avoid build error on SMP

---

 testsuite/ppp01/test_main.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/testsuite/ppp01/test_main.c b/testsuite/ppp01/test_main.c
index 7fe388b..fd6d168 100644
--- a/testsuite/ppp01/test_main.c
+++ b/testsuite/ppp01/test_main.c
@@ -59,6 +59,8 @@
 
 #define TEST_NAME "LIBBSD PPP 1"
 
+#ifndef RTEMS_SMP
+
 static void
 set_pppd_options(void)
 {
@@ -272,6 +274,17 @@ test_main(void)
 
 RTEMS_BSD_DEFINE_NEXUS_DEVICE(ppp, 0, 0, NULL);
 
+#else /* RTEMS_SMP */
+
+static void
+test_main(void)
+{
+	printf("PPP is not support on SMP configurations");
+	exit(0);
+}
+
+#endif /* RTEMS_SMP */
+
 #define CONFIGURE_MAXIMUM_DRIVERS 32
 
 #define DEFAULT_NETWORK_SHELL



More information about the vc mailing list