Skip to contentSkip to conversation

build-sys: fix typo

PATCH In review Romain Naour 2 participants 3 messages Feb 19, 2016 – Feb 22, 2016 Util-Linux package

lore
Share & tools
lore
#0 lore raw

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

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index 227ba25..961c1ab 100644
@@ -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
#1 lore raw

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

---
 login-utils/vipw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
login-utils/vipw.c +1 -1
index a3c932f..bb4a8ba 100644
@@ -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
maintainer
#2 lore raw
In reply to Romain Naour
Quoted 2 lines · Romain Naour

When timer_create is available have_timer must be
set to "yes". But instead have_time is used.

Thanks! both patches applied.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com