summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-01-04 19:53:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-01-04 19:53:14 +0000
commit3030975ab6155c3c5b78e158ffe885549b3c8d1b (patch)
tree5638375ba39a08785600fc63660566fb9204bf9c /cpukit/libcsupport
parent2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-3030975ab6155c3c5b78e158ffe885549b3c8d1b.tar.bz2
2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/error.c: Scheduler Simulator compilation always defines __RTEMS_VIOLATE_KERNEL_VISIBILITY__. So avoid redefinition warning.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/src/error.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/error.c b/cpukit/libcsupport/src/error.c
index 666da76b8b..074707c54c 100644
--- a/cpukit/libcsupport/src/error.c
+++ b/cpukit/libcsupport/src/error.c
@@ -43,7 +43,12 @@
* }
*/
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
+/* This is always defined on RTEMS Scheduler Simulator and thus
+ * we get a redefined warning if this is not present.
+ */
+#ifndef __RTEMS_VIOLATE_KERNEL_VISIBILITY__
+ #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
+#endif
#include <rtems.h>
#include <rtems/error.h>