[PATCH] configure.ac: crypt related fix for musl libc

2016-05-24 Thread maxin . john
From: "Maxin B. John" This patch fixes a case where it find crypt defined in libc (musl) but not in specified libraries then it ends up assigning LIBCRYPT="-l" which then goes into makefile cause all sort of problems e.g. ld: cannot find -l-m32 | collect2: error: ld

[PATCH] pam_lastlog.c: Fix build with musl

2016-05-24 Thread maxin . john
From: "Maxin B. John" Define strndupa if not available in libc. Also fix headers to explicitly needed include files which glibc was including indirectly Signed-off-by: Khem Raj Signed-off-by: Maxin B. John ---

[PATCH] Add support for defining missing funcitonality

2016-05-24 Thread maxin . john
From: "Maxin B. John" In order to support alternative libc on linux ( musl, bioninc) etc we need to check for glibc-only features and provide alternatives. In this list strndupa is first one. When configure detects that its not included in system C library then the