[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 13/14] mach-defpager: include errno.h
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 13/14] mach-defpager: include errno.h |
Date: |
Sat, 9 Nov 2013 19:17:45 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Fri 08 Nov 2013 21:24:21 +0100, a écrit :
> Define _GNU_SOURCE and include errno.h so that the type error_t is
> defined.
>
> * mach-defpager/default_pager.c: Define _GNU_SOURCE and include errno.h.
Isn't _GNU_SOURCE already defined on the build command line?
Including errno.h is fine however, indeed.
> ---
> mach-defpager/default_pager.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/mach-defpager/default_pager.c b/mach-defpager/default_pager.c
> index 9dad4c2..674f4c3 100644
> --- a/mach-defpager/default_pager.c
> +++ b/mach-defpager/default_pager.c
> @@ -29,6 +29,9 @@
> * MUST BE ABLE TO ALLOCATE WIRED-DOWN MEMORY!!!
> */
>
> +#define _GNU_SOURCE
> +#include <errno.h>
> +
> #include <mach.h>
> #include <mach/message.h>
> #include <mach/notify.h>
> --
> 1.7.10.4
>
>
--
Samuel
+#if defined(__alpha__) && defined(CONFIG_PCI)
+ /*
+ * The meaning of life, the universe, and everything. Plus
+ * this makes the year come out right.
+ */
+ year -= 42;
+#endif
(From the patch for 1.3.2: (kernel/time.c), submitted by Marcus Meissner)
- Re: [PATCH 06/14] proc: turn {init, add}str, compare_versions into normal functions, (continued)
- Re: [PATCH 06/14] proc: turn {init, add}str, compare_versions into normal functions, Richard Braun, 2013/11/09
- Re: [PATCH 06/14] proc: turn {init, add}str, compare_versions into normal functions, Justus Winter, 2013/11/09
- Re: [PATCH 06/14] proc: turn {init, add}str, compare_versions into normal functions, Ludovic Courtès, 2013/11/09
Re: [PATCH 06/14] proc: turn {init, add}str, compare_versions into normal functions, Samuel Thibault, 2013/11/09
[PATCH 03/14] proc: remove declaration of nested functions from proc.h, Justus Winter, 2013/11/08
[PATCH 05/14] proc: turn reap into a normal function, Justus Winter, 2013/11/08
[PATCH 08/14] proc: fix a use-after-free error, Justus Winter, 2013/11/08
[PATCH 13/14] mach-defpager: include errno.h, Justus Winter, 2013/11/08
- Re: [PATCH 13/14] mach-defpager: include errno.h,
Samuel Thibault <=
[PATCH 02/14] libtrivfs: improve the out of memory handling in add_el, Justus Winter, 2013/11/08
[PATCH 12/14] mach-defpager: turn dealloc_direct into a normal function, Justus Winter, 2013/11/08
Re: [PATCH 01/14] term: fix error handling in hurdio_mdmctl, Samuel Thibault, 2013/11/09