build-sys: fix typo
PATCH 1/2 build-sys: fix typo
When timer_create is available have_timer must be
set to "yes". But instead have_time is used.
Replace have_time by have_timer.
Fixes:
http://autobuild.buildroot.net/results/993/9935cd0522d4f978ba2e788a690f66790686b76b
Signed-off-by Romain Naour <[email protected]>
--- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
@@ -402,7 +402,7 @@ AC_CHECK_FUNCS([clock_gettime], [], have_timer="no" AC_CHECK_FUNCS([timer_create], - [have_time="yes"], + [have_timer="yes"], [AC_CHECK_LIB([rt], [timer_create], [ have_timer="yes" REALTIME_LIBS="-lrt"
Signature · 1 line
2.5.0
PATCH 2/2 vipw: Remove pre-ANSI compiler support
__P() is used for compatibility with old K&R C compilers. With ANSI C this macro has no effect.
This fixes a compilation error with musl libc because of undeclared __P.
Ref:
https://lists.samba.org/archive/samba-technical/2015-June/108042.html
Signed-off-by Romain Naour <[email protected]>
--- login-utils/vipw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
login-utils/vipw.c +1 -1
@@ -85,7 +85,7 @@ int program;char orig_file[FILENAMELEN ];/* original file /etc/passwd or /etc/group */ char *tmp_file;/* tmp file */ -void pw_error __P((char *, int, int)); +void pw_error (char *,int ,int );static void copyfile (int from,int to) {
Signature · 1 line
2.5.0
Karel Zak
maintainerQuoted 2 lines · Romain Naour
When
timer_createis availablehave_timermust be
set to "yes". But insteadhave_timeis used.
Thanks! both patches applied.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com