Skip to content

Commit

Permalink
devkitA64: add sys/mkdev.h header
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed Feb 15, 2024
1 parent 9d8f579 commit 1ac48f5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-devkit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#---------------------------------------------------------------------------------
# devkitARM release 63
# devkitPPC release 45
# devkitA64 release 25
# devkitA64 release 25.1
#---------------------------------------------------------------------------------

if [ 0 -eq 1 ] ; then
Expand Down
17 changes: 17 additions & 0 deletions dka64/patches/newlib-4.4.0.20231231.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dka64/scripts/build-gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 1ac48f5

Please sign in to comment.