summaryrefslogtreecommitdiffstats
path: root/sys/alpha/include/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/alpha/include/endian.h')
-rw-r--r--sys/alpha/include/endian.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/alpha/include/endian.h b/sys/alpha/include/endian.h
index d9e64c8..5f8c050 100644
--- a/sys/alpha/include/endian.h
+++ b/sys/alpha/include/endian.h
@@ -56,6 +56,14 @@
#define PDP_ENDIAN 3412 /* LSB first in word, MSW first in long */
#define BYTE_ORDER LITTLE_ENDIAN
+
+#ifdef _KERNEL
+#define _BSWAP16_DEFINED
+__uint16_t __bswap16(__uint16_t);
+#define _BSWAP32_DEFINED
+__uint32_t __bswap32(__uint32_t);
+#endif /* _KERNEL */
+
#endif /* !_POSIX_SOURCE */
#endif /* !_MACHINE_ENDIAN_H_ */
OpenPOWER on IntegriCloud