[lxc-devel] [PATCH 0/3] The poor man's attach

Cedric Le Goater legoater at free.fr
Thu Nov 3 13:24:27 UTC 2011


>> --- lxc.git.orig/src/lxc/lxc_init.c
>> +++ lxc.git/src/lxc/lxc_init.c
>> @@ -36,6 +36,7 @@
>>    #include<sys/signalfd.h>
>>    #include<sys/socket.h>
>>    #include<linux/limits.h>
>> +#include<pty.h>
>>
>
> Hmm... Look at my original post,<pty.h>  is included between<utmp.h>
> and<stdio.h>. I guess you want to fix this warning:
>
> In function ‘handle_rexec_connect’:
> src/lxc/lxc_init.c:372:3: warning: implicit declaration of function
> ‘login_tty’
>
> right ?

Yes and I didn't fix anything in fact ...

> For a reason I don't fully understand, src/lxc/pty.h gets included
> instead of /usr/include/pty.h... hence the warning.

src/lxc/pty.h comes with these include options:

	DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src
  
automake manages this part. I don't know if if can be changed.

C.





More information about the lxc-devel mailing list