6e5a42fe9a
* configure.ac: Change host_os to cygwin for mingw. (asprintf): New check for function. * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with #if ! defined (__CYGWIN__) && ! defined (__MINGW32__). * include/grub/util/misc.h: #include <config.h> and <grub/types.h>, declear asprintf if HAVE_ASPRINTF is not set, declear fseeko, ftello, sync, sleep and grub_util_get_disk_size for mingw. * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size to get size in mingw. (open_device): Use flag O_BINARY if it's defined. (find_root_device): Add dummy code for mingw. * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw. (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw. (get_scsi_disk_name): Return 0 for mingw. * util/hostfs.c: #include <grub/util/misc.h>. (grub_hostfs_open): Use "rb" flag to open file, use grub_util_get_disk_size to get disk size for mingw. * util/misc.c: #include <windows.h> and <winioctl.h> in mingw. (asprintf): New function if HAVE_ASPRINTF is not set. (sync): New function for mingw. (sleep): Likewise. (grub_util_get_disk_size): Likewise.
125 lines
3.2 KiB
C
125 lines
3.2 KiB
C
/* config.h.in. Generated from configure.ac by autoheader. */
|
|
|
|
/* Define it if GAS requires that absolute indirect calls/jumps are not
|
|
prefixed with an asterisk */
|
|
#undef ABSOLUTE_WITHOUT_ASTERISK
|
|
|
|
/* Define it to \"addr32\" or \"addr32;\" to make GAS happy */
|
|
#undef ADDR32
|
|
|
|
/* Define it to one of __bss_start, edata and _edata */
|
|
#undef BSS_START_SYMBOL
|
|
|
|
/* Define it to \"data32\" or \"data32;\" to make GAS happy */
|
|
#undef DATA32
|
|
|
|
/* Use lzma compression */
|
|
#undef ENABLE_LZMA
|
|
|
|
/* Use lzo compression */
|
|
#undef ENABLE_LZO
|
|
|
|
/* Define it to either end or _end */
|
|
#undef END_SYMBOL
|
|
|
|
/* Define if C symbols get an underscore after compilation */
|
|
#undef HAVE_ASM_USCORE
|
|
|
|
/* Define to 1 if you have the `asprintf' function. */
|
|
#undef HAVE_ASPRINTF
|
|
|
|
/* Define to 1 if you have the <curses.h> header file. */
|
|
#undef HAVE_CURSES_H
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
#undef HAVE_INTTYPES_H
|
|
|
|
/* Define to 1 if you have the <lzo1x.h> header file. */
|
|
#undef HAVE_LZO1X_H
|
|
|
|
/* Define to 1 if you have the <lzo/lzo1x.h> header file. */
|
|
#undef HAVE_LZO_LZO1X_H
|
|
|
|
/* Define to 1 if you have the `memalign' function. */
|
|
#undef HAVE_MEMALIGN
|
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
#undef HAVE_MEMORY_H
|
|
|
|
/* Define to 1 if you have the <ncurses/curses.h> header file. */
|
|
#undef HAVE_NCURSES_CURSES_H
|
|
|
|
/* Define to 1 if you have the <ncurses.h> header file. */
|
|
#undef HAVE_NCURSES_H
|
|
|
|
/* Define to 1 if you have the `posix_memalign' function. */
|
|
#undef HAVE_POSIX_MEMALIGN
|
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
#undef HAVE_STDINT_H
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
#undef HAVE_STDLIB_H
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
#undef HAVE_STRINGS_H
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
#undef HAVE_STRING_H
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
#undef HAVE_SYS_STAT_H
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
#undef HAVE_SYS_TYPES_H
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
#undef HAVE_UNISTD_H
|
|
|
|
/* Define to 1 if you enable memory manager debugging. */
|
|
#undef MM_DEBUG
|
|
|
|
/* Catch gcc bug */
|
|
#undef NESTED_FUNC_ATTR
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
#undef PACKAGE_BUGREPORT
|
|
|
|
/* Define to the full name of this package. */
|
|
#undef PACKAGE_NAME
|
|
|
|
/* Define to the full name and version of this package. */
|
|
#undef PACKAGE_STRING
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
#undef PACKAGE_TARNAME
|
|
|
|
/* Define to the version of this package. */
|
|
#undef PACKAGE_VERSION
|
|
|
|
/* The size of `long', as computed by sizeof. */
|
|
#undef SIZEOF_LONG
|
|
|
|
/* The size of `void *', as computed by sizeof. */
|
|
#undef SIZEOF_VOID_P
|
|
|
|
/* Define it to either start or _start */
|
|
#undef START_SYMBOL
|
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
|
#undef STDC_HEADERS
|
|
|
|
/* Define to 1 if your processor stores words with the most significant byte
|
|
first (like Motorola and SPARC, unlike Intel and VAX). */
|
|
#undef WORDS_BIGENDIAN
|
|
|
|
/* Number of bits in a file offset, on hosts where this is settable. */
|
|
#undef _FILE_OFFSET_BITS
|
|
|
|
/* Enable GNU extensions on systems that have them. */
|
|
#ifndef _GNU_SOURCE
|
|
# undef _GNU_SOURCE
|
|
#endif
|
|
|
|
/* Define for large files, on AIX-style hosts. */
|
|
#undef _LARGE_FILES
|