* 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:
parent
287faafe8d
commit
3ff4063dd3
30 changed files with 4039 additions and 2364 deletions
18
util/getroot_os.c
Normal file
18
util/getroot_os.c
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifdef __linux__
|
||||
#include "getroot_linux.c"
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
#include "getroot_freebsd.c"
|
||||
#elif defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#include "getroot_bsd.c"
|
||||
#elif defined(__APPLE__)
|
||||
#include "getroot_apple.c"
|
||||
#elif defined(__sun__)
|
||||
#include "getroot_sun.c"
|
||||
#elif defined(__GNU__)
|
||||
#include "getroot_hurd.c"
|
||||
#elif defined(__CYGWIN__)
|
||||
#include "getroot_cygwin.c"
|
||||
#else
|
||||
# warning "No getroot OS-specific functions is available for your system. Device detection may not work properly."
|
||||
#include "getroot_basic.c"
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue