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

Stéphane Graber stgraber at ubuntu.com
Thu Jan 3 17:24:22 UTC 2013


Signed-off-by: Stéphane Graber <stgraber 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





More information about the lxc-devel mailing list