From: Stéphane Graber Date: Thu, 10 Jan 2013 22:10:51 +0000 (-0500) Subject: utmp.h: Don't fail when utmpx.h isn't present X-Git-Tag: lxc-0.9.0.alpha3~1^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f298ee50b8cfa46f20138f95ca916ec4b54c9a45;p=thirdparty%2Flxc.git utmp.h: Don't fail when utmpx.h isn't present Following a comment on the mailing-list, I made utmp.h return -1 when it's disabled, the problem with that is that it prevents the container from starting completely, which isn't quite what I wanted. This change makes the function succeed, the container will therefore start but without utmp handler. Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/utmp.h b/src/lxc/utmp.h index 1bd7c23db..ad4a8ab38 100644 --- a/src/lxc/utmp.h +++ b/src/lxc/utmp.h @@ -32,6 +32,6 @@ int lxc_utmp_mainloop_add(struct lxc_epoll_descr *descr, #else static inline int lxc_utmp_mainloop_add(struct lxc_epoll_descr *descr, struct lxc_handler *handler) { - return -1; + return 0; } #endif