[klibc] [klibc:master] sys/sysmacros.h: match glibc and define non-__ macros

klibc-bot for H. Peter Anvin hpa at zytor.com
Thu May 24 07:48:03 PDT 2012


Commit-ID:  c3110b853f667d544717a9cdd6d96b1a2a7365bf
Gitweb:     http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=c3110b853f667d544717a9cdd6d96b1a2a7365bf
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Thu, 24 May 2012 07:43:31 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Thu, 24 May 2012 07:43:31 -0700

[klibc] sys/sysmacros.h: match glibc and define non-__ macros

Match glibc and define non-double-underscore versions of the dev_t
accessors as macros.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>

---
 usr/include/sys/sysmacros.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/usr/include/sys/sysmacros.h b/usr/include/sys/sysmacros.h
index c344339..4f0b12a 100644
--- a/usr/include/sys/sysmacros.h
+++ b/usr/include/sys/sysmacros.h
@@ -31,4 +31,8 @@ static __inline__ dev_t makedev(int __ma, int __mi)
 	return __makedev(__ma, __mi);
 }
 
+#define major(d)	__major(d)
+#define minor(d)	__minor(d)
+#define makedev(ma,mi)	__makedev(ma,mi)
+
 #endif				/* _SYS_SYSMACROS_H */


More information about the klibc mailing list