summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-03-24 09:28:32 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-03-24 09:28:32 +0000
commit223fd16b3037ded76dc51f916d470d2c2adc7d58 (patch)
treecb45e872e3760323835a66455cf7c19c128be542 /cpukit/libnetworking
parentAbandon (diff)
downloadrtems-223fd16b3037ded76dc51f916d470d2c2adc7d58.tar.bz2
2011-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/linker_set.h: Add local versions of __used and __CONCAT macros.
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/sys/linker_set.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpukit/libnetworking/sys/linker_set.h b/cpukit/libnetworking/sys/linker_set.h
index a2354ed397..c83d7c845a 100644
--- a/cpukit/libnetworking/sys/linker_set.h
+++ b/cpukit/libnetworking/sys/linker_set.h
@@ -30,6 +30,22 @@
#ifndef _SYS_LINKER_SET_H_
#define _SYS_LINKER_SET_H_
+/* FIXME: These macros should not be here
+ * BSD has them macros in sys/cdefs.h
+ * older rtems had them in rtems/bsd/sys/cdefs.h
+ * newlib has some of them in sys/cdefs.h
+ */
+
+#if defined(__rtems__)
+#ifndef __used
+#define __used __attribute__((__used__))
+#endif
+#ifndef __CONCAT
+#define __CONCAT1(x,y) x ## y
+#define __CONCAT(x,y) __CONCAT1(x,y)
+#endif
+#endif
+
/*
* The following macros are used to declare global sets of objects, which
* are collected by the linker into a `linker_set' as defined below.