[Buildroot] [PATCH 1/1] Patch to support latest buildroot environment

Khem Raj raj.khem at gmail.com
Thu Aug 4 07:55:09 UTC 2016


> On Aug 3, 2016, at 6:47 PM, Olivier Singla <olivier.singla at gmail.com> wrote:
> 
> From: Olivier <olivier.singla at gmail.com>
> 
> Fixes:
> - launcher.c: added include to <sys/ttydefaults.h> to avoid missing definitions
> - launcher.c: do not include utmpx.h (since ptsname_r is already defined in stdlib.h)

I hope -D_GNU_SOURCE is passed in CFLAGS for relevant source file as well.

> 
> Signed-off-by: Olivier Singla <olivier.singla at gmail.com>
> ---
> .../0002-launcher.c-fix-ttydef-utmpx.patch         | 28 ++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
> create mode 100644 package/shellinabox/0002-launcher.c-fix-ttydef-utmpx.patch
> 
> diff --git a/package/shellinabox/0002-launcher.c-fix-ttydef-utmpx.patch b/package/shellinabox/0002-launcher.c-fix-ttydef-utmpx.patch
> new file mode 100644
> index 0000000..54cb699
> --- /dev/null
> +++ b/package/shellinabox/0002-launcher.c-fix-ttydef-utmpx.patch
> @@ -0,0 +1,28 @@
> +launcher.c: added include to <sys/ttydefaults.h> to avoid missing definitions
> +launcher.c: do not include utmpx.h (since ptsname_r is already defined in stdlib.h)
> +
> +Signed-off-by:  "Olivier Singla" <olivier.singla at gmail.com>
> +
> +--- shellinabox-v2.19/shellinabox/launcher.c.orig	2016-08-01 18:43:01.628002777 -0400
> ++++ shellinabox-v2.19/shellinabox/launcher.c	2016-08-01 18:45:14.943444066 -0400
> +@@ -81,6 +81,10 @@
> + #include <sys/uio.h>
> + #endif
> +
> ++#ifndef TTYDEF_IFLAG
> ++#include <sys/ttydefaults.h>
> ++#endif
> ++
> + #ifdef HAVE_UTIL_H
> + #include <util.h>
> + #endif
> +@@ -90,7 +94,8 @@
> + #endif
> +
> + #ifdef HAVE_UTMPX_H
> +-#include <utmpx.h>
> ++//#include <utmpx.h>
> ++#undef HAVE_UTMPX_H
> + #endif

should the whole block be removed instead ?

> +
> + #if defined(HAVE_SECURITY_PAM_APPL_H)
> --
> 2.5.5
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160804/d9fff13e/attachment.asc>


More information about the buildroot mailing list