public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] define __ prefixed version of intXY_t types
@ 2017-09-08 23:36 Khem Raj
  2017-09-09  0:50 ` Eric Sandeen
  2017-09-09  0:56 ` Dave Chinner
  0 siblings, 2 replies; 6+ messages in thread
From: Khem Raj @ 2017-09-08 23:36 UTC (permalink / raw)
  To: linux-xfs; +Cc: Khem Raj

This is required since musl does not define them
unlike glibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 include/linux.h | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/include/linux.h b/include/linux.h
index 9611a37f..1f6319c6 100644
--- a/include/linux.h
+++ b/include/linux.h
@@ -40,6 +40,35 @@
 # undef fsxattr
 #endif
 
+#ifndef loff_t
+#define loff_t off_t
+#endif
+#ifndef __uint8_t
+#define __uint8_t uint8_t
+#endif
+#ifndef __uint16_t
+#define __uint16_t uint16_t
+#endif
+#ifndef __uint32_t
+#define __uint32_t uint32_t
+#endif
+#ifndef __uint64_t
+#define __uint64_t uint64_t
+#endif
+
+#ifndef __int8_t
+#define __int8_t int8_t
+#endif
+#ifndef __int16_t
+#define __int16_t int16_t
+#endif
+#ifndef __int32_t
+#define __int32_t int32_t
+#endif
+#ifndef __int64_t
+#define __int64_t int64_t
+#endif
+
 static __inline__ int xfsctl(const char *path, int fd, int cmd, void *p)
 {
 	return ioctl(fd, cmd, p);
-- 
2.14.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-09-09  2:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-08 23:36 [PATCH] define __ prefixed version of intXY_t types Khem Raj
2017-09-09  0:50 ` Eric Sandeen
2017-09-09  1:14   ` Khem Raj
2017-09-09  2:02     ` Khem Raj
2017-09-09  0:56 ` Dave Chinner
2017-09-09  1:02   ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox