[systemd-devel] [PATCH 2/2] missing.h: Define IFA_F_NOPREFIXROUTE

Lennart Poettering lennart at poettering.net
Wed Apr 8 04:03:10 PDT 2015


On Tue, 07.04.15 23:05, Alexander Sverdlin (alexander.sverdlin at gmail.com) wrote:

> IFA_F_NOPREFIXROUTE is a usual #define appeared in Linux 3.14, so AC_CHECK_DECLS
> is not necessary

Applied! THanks!

> ---
> 
> Fixes second systemd compilation problem against Linux 3.12 uapi headers.
> 
>  src/shared/missing.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/shared/missing.h b/src/shared/missing.h
> index 86c917b..e029167 100644
> --- a/src/shared/missing.h
> +++ b/src/shared/missing.h
> @@ -866,6 +866,10 @@ static inline int setns(int fd, int nstype) {
>  #define IFA_MAX (__IFA_MAX - 1)
>  #endif
> 
> +#ifndef IFA_F_NOPREFIXROUTE
> +#define IFA_F_NOPREFIXROUTE 0x200
> +#endif
> +
>  #ifndef MAX_AUDIT_MESSAGE_LENGTH
>  #define MAX_AUDIT_MESSAGE_LENGTH 8970
>  #endif
> 


Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list