* grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-09-22 03:29:51 +02:00
parent d1983764f4
commit 287faafe8d
2 changed files with 8 additions and 3 deletions

View file

@ -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> 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and

View file

@ -21,11 +21,12 @@
#include <grub/misc.h> #include <grub/misc.h>
#ifndef __APPLE__ #if defined (__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
typedef grub_size_t size_t;
#else
#include <stddef.h> #include <stddef.h>
#else
typedef grub_size_t size_t;
#endif #endif
typedef grub_ssize_t ssize_t; typedef grub_ssize_t ssize_t;
#ifndef GRUB_POSIX_BOOL_DEFINED #ifndef GRUB_POSIX_BOOL_DEFINED
typedef enum { false = 0, true = 1 } bool; typedef enum { false = 0, true = 1 } bool;