mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-04-20 17:37:22 -05:00
devkitA64: add sys/mkdev.h header
This commit is contained in:
parent
9d8f579c1c
commit
1ac48f5437
|
|
@ -2,7 +2,7 @@
|
|||
#---------------------------------------------------------------------------------
|
||||
# devkitARM release 63
|
||||
# devkitPPC release 45
|
||||
# devkitA64 release 25
|
||||
# devkitA64 release 25.1
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
if [ 0 -eq 1 ] ; then
|
||||
|
|
|
|||
|
|
@ -11114,6 +11114,23 @@ index 000000000..335014a4b
|
|||
+//---------------------------------------------------------------------------------
|
||||
+#endif // __iosupp_h__
|
||||
+//---------------------------------------------------------------------------------
|
||||
diff --git a/newlib/libc/include/sys/mkdev.h b/newlib/libc/include/sys/mkdev.h
|
||||
new file mode 100644
|
||||
index 000000000..a6f860158
|
||||
--- /dev/null
|
||||
+++ b/newlib/libc/include/sys/mkdev.h
|
||||
@@ -0,0 +1,11 @@
|
||||
+#ifndef __SYS_MKDEV_H__
|
||||
+#define __SYS_MKDEV_H__
|
||||
+
|
||||
+#define MINORBITS 20
|
||||
+#define MINORMASK ((1U << MINORBITS) - 1)
|
||||
+
|
||||
+#define major(dev) ((unsigned int) ((dev) >> MINORBITS))
|
||||
+#define minor(dev) ((unsigned int) ((dev) & MINORMASK))
|
||||
+#define mkdev(ma,mi) (((ma) << MINORBITS) | (mi))
|
||||
+
|
||||
+#endif
|
||||
diff --git a/newlib/libc/include/sys/param.h b/newlib/libc/include/sys/param.h
|
||||
index 9a6f115a6..142e71d35 100644
|
||||
--- a/newlib/libc/include/sys/param.h
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ then
|
|||
--enable-lto \
|
||||
--disable-tm-clone-registry \
|
||||
--disable-__cxa_atexit \
|
||||
--with-bugurl="https://github.com/devkitPro/buildscripts/issues" --with-pkgversion="devkitA64 release 25" \
|
||||
--with-bugurl="https://github.com/devkitPro/buildscripts/issues" --with-pkgversion="devkitA64 release 25.1" \
|
||||
$CROSS_PARAMS \
|
||||
$CROSS_GCC_PARAMS \
|
||||
$EXTRA_GCC_PARAMS \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user