Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-09 08:20:20 +02:00
parent 37149a2f20
commit 761c718b52
8 changed files with 154 additions and 68 deletions

View file

@ -24,19 +24,7 @@
#include <grub/symbol.h>
#include <grub/types.h>
#if defined (__AROS__)
# define DEFAULT_DIRECTORY "SYS:" GRUB_BOOT_DIR_NAME "/" GRUB_DIR_NAME
#elif defined __CYGWIN__ || defined (__MINGW32__)
# define DEFAULT_DIRECTORY "C:\\"GRUB_BOOT_DIR_NAME"\\"GRUB_DIR_NAME
#elif defined (__NetBSD__)
/* NetBSD uses /boot for its boot block. */
# define DEFAULT_DIRECTORY "/"GRUB_DIR_NAME
#else
# define DEFAULT_DIRECTORY "/"GRUB_BOOT_DIR_NAME"/"GRUB_DIR_NAME
#endif
#define DEFAULT_DEVICE_MAP DEFAULT_DIRECTORY "/device.map"
#include <grub/osdep/hostfile.h>
extern int verbosity;
extern const char *program_name;
@ -63,12 +51,6 @@ void EXPORT_FUNC(grub_util_error) (const char *fmt, ...) __attribute__ ((format
extern char * canonicalize_file_name (const char *path);
#ifdef __MINGW32__
int fsync (int fno);
#endif
#ifdef HAVE_DEVICE_MAPPER
int grub_device_mapper_supported (void);
#endif