From 5dd8205424bac1fad2e9757f650b7d21b5b708d8 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Mon, 23 Sep 2013 12:03:56 +0200 Subject: [PATCH] * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's less nice but more portable. * grub-core/lib/posix_wrap/wchar.h: Likewise. --- grub-core/lib/posix_wrap/sys/types.h | 4 ---- grub-core/lib/posix_wrap/wchar.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/grub-core/lib/posix_wrap/sys/types.h b/grub-core/lib/posix_wrap/sys/types.h index ca7fb53f6..854eb0122 100644 --- a/grub-core/lib/posix_wrap/sys/types.h +++ b/grub-core/lib/posix_wrap/sys/types.h @@ -21,11 +21,7 @@ #include -#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 diff --git a/grub-core/lib/posix_wrap/wchar.h b/grub-core/lib/posix_wrap/wchar.h index 8222140ea..d5d7741de 100644 --- a/grub-core/lib/posix_wrap/wchar.h +++ b/grub-core/lib/posix_wrap/wchar.h @@ -21,10 +21,8 @@ #include -#if defined(__NetBSD__) || defined(__OpenBSD__) #define wchar_t grub_posix_wchar_t #define mbstate_t grub_posix_mbstate_t -#endif /* UCS-4. */ typedef grub_int32_t wint_t;