summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/error.c')
-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>