From 0e9b73d3fb5e3c7a5146af65e119e297dcf75487 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 10 Jun 2012 16:37:11 +0200 Subject: build: fix redundant redeclaration warnings env.c:24:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls] su.c:81:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls] fstab.c:581:14: warning: redundant redeclaration of 'strsignal' [-Wredundant-decls] kill.h:1:13: note: previous declaration of 'get_pids' was here kill.c:152:13: warning: redundant redeclaration of 'get_pids' [-Wredundant-decls] kill.c:142:5: warning: redundant redeclaration of 'main' [-Wredundant-decls] getopt.c:89:5: warning: redundant redeclaration of 'main' [-Wredundant-decls] agetty.c:536:15: warning: redundant redeclaration of 'optarg' [-Wredundant-decls] agetty.c:537:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] script.c:161:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] wall.c:96:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] libmount.h:362:26: note: previous declaration of 'mnt_update_get_fs' was here libmount.h:454:26: note: previous declaration of 'mnt_context_get_fs' was here mountP.h:383:26: warning: redundant redeclaration of 'mnt_context_get_fs' [-Wredundant-decls] mountP.h:398:26: warning: redundant redeclaration of 'mnt_update_get_fs' [-Wredundant-decls] Signed-off-by: Sami Kerola --- mount/fstab.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mount/fstab.c') diff --git a/mount/fstab.c b/mount/fstab.c index 043cc43e2..a39459138 100644 --- a/mount/fstab.c +++ b/mount/fstab.c @@ -578,7 +578,9 @@ static int lockfile_fd = -1; static int signals_have_been_setup = 0; /* Ensure that the lock is released if we are interrupted. */ +#ifndef HAVE_STRSIGNAL_DECL extern char *strsignal(int sig); /* not always in */ +#endif static void handler (int sig) { -- cgit v1.2.3-55-g7522