[rtems commit] network: Quirk for Newlib compatibility

Sebastian Huber sebh at rtems.org
Thu Apr 7 07:25:04 UTC 2016


Module:    rtems
Branch:    master
Commit:    af13b01888fff2ab458965aaaa40beeacf054098
Changeset: http://git.rtems.org/rtems/commit/?id=af13b01888fff2ab458965aaaa40beeacf054098

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Apr  7 09:09:29 2016 +0200

network: Quirk for Newlib compatibility

Newlib provides now a declration for random() in <stdlib.h>.  This
confilicts with the define in <rtems/rtems_bsdnet_internal.h>.

---

 cpukit/libnetworking/rtems/rtems_showroute.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpukit/libnetworking/rtems/rtems_showroute.c b/cpukit/libnetworking/rtems/rtems_showroute.c
index 24eb12d..6080fa3 100644
--- a/cpukit/libnetworking/rtems/rtems_showroute.c
+++ b/cpukit/libnetworking/rtems/rtems_showroute.c
@@ -26,6 +26,7 @@
  */
 #undef free
 #undef malloc
+#undef random
 #include <stdlib.h>
 
 /*




More information about the vc mailing list