[lxc-devel] [PATCH 21/21] utmp.c: Avoid duplicate definition of __USE_GNU

Serge Hallyn serge.hallyn at canonical.com
Thu Jan 3 22:16:48 UTC 2013


Quoting Stéphane Graber (stgraber at ubuntu.com):
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

> ---
>  src/lxc/utmp.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/lxc/utmp.c b/src/lxc/utmp.c
> index 16d1b5d..f32ed63 100644
> --- a/src/lxc/utmp.c
> +++ b/src/lxc/utmp.c
> @@ -42,7 +42,9 @@
>  #include "lxc.h"
>  #include "log.h"
>  
> +#ifndef __USE_GNU
>  #define __USE_GNU
> +#endif
>  #include <utmpx.h>
>  #undef __USE_GNU
>  
> -- 
> 1.8.0
> 
> 
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel




More information about the lxc-devel mailing list