Re: [PATCH v2] compat: convert modes to use portable file type values
- From
David Michael <fedora.dm0@gmail.com>
- Date
- Dec 4, 2014, 19:27 UTC
- Message-ID
- <CAEvUa7nxzX=54QJto_R3hfvAO4FKhs8Pancz0TTiC7ev22--Kw@mail.gmail.com>
- In-Reply-To
- <87wq68w3se.fsf@gmail.com>
On Wed, Dec 3, 2014 at 9:24 PM, David Michael <fedora.dm0@gmail.com> wrote:
Show 7 quoted lines
> --- /dev/null > +++ b/compat/stat.c > @@ -0,0 +1,49 @@ > +#define _POSIX_C_SOURCE 200112L > +#include <stddef.h> /* NULL */ > +#include <sys/stat.h> /* *stat, S_IS* */ > +#include <sys/types.h> /* mode_t */
Oops, the <stddef.h> line can be removed now that this is no longer testing for NULL. Let me know if this warrants a v3 if there is no other feedback.
Thanks.
David