diff --git a/ChangeLog b/ChangeLog index e7cfe0435..9e5d2a356 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-09-22 Vladimir Serbinenko + + * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD. + 2013-09-22 Vladimir Serbinenko * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and diff --git a/grub-core/lib/posix_wrap/sys/types.h b/grub-core/lib/posix_wrap/sys/types.h index 6485a9a35..ca7fb53f6 100644 --- a/grub-core/lib/posix_wrap/sys/types.h +++ b/grub-core/lib/posix_wrap/sys/types.h @@ -21,11 +21,12 @@ #include -#ifndef __APPLE__ -typedef grub_size_t size_t; -#else +#if defined (__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #include +#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;