mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 15:22:39 +00:00
* grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
files rather than one file with loads of #if's. * util/getroot.c: Likewise.
This commit is contained in:
1 parent
287faafe8d
commit
3ff4063dd3
30 files changed
+4039
-2364
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#ifdef __linux__
|
||||
#include "hostdisk_linux.c"
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
#include "hostdisk_freebsd.c"
|
||||
#elif defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#include "hostdisk_bsd.c"
|
||||
#elif defined(__APPLE__)
|
||||
#include "hostdisk_apple.c"
|
||||
#elif defined(__sun__)
|
||||
#include "hostdisk_sun.c"
|
||||
#elif defined(__GNU__)
|
||||
#include "hostdisk_hurd.c"
|
||||
#elif defined(__CYGWIN__)
|
||||
#include "hostdisk_cygwin.c"
|
||||
#elif defined(__MINGW32__)
|
||||
#include "hostdisk_mingw.c"
|
||||
#else
|
||||
# warning "No hostdisk OS-specific functions is available for your system. Device detection may not work properly."
|
||||
#include "hostdisk_basic.c"
|
||||
#endif
|
||||
Reference in new issue
Block a user