* grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
This commit is contained in:
parent
d1983764f4
commit
287faafe8d
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
|
||||
|
||||
2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
|
||||
|
|
|
@ -21,11 +21,12 @@
|
|||
|
||||
#include <grub/misc.h>
|
||||
|
||||
#ifndef __APPLE__
|
||||
typedef grub_size_t size_t;
|
||||
#else
|
||||
#if defined (__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
#include <stddef.h>
|
||||
#else
|
||||
typedef grub_size_t size_t;
|
||||
#endif
|
||||
|
||||
typedef grub_ssize_t ssize_t;
|
||||
#ifndef GRUB_POSIX_BOOL_DEFINED
|
||||
typedef enum { false = 0, true = 1 } bool;
|
||||
|
|
Loading…
Reference in a new issue