From b9583fb354aa82235ca1deb42a743cc4e0046f93 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Tue, 14 Apr 2009 12:59:48 -0300 Subject: [PATCH] Don't set Pentium M arch by default Signed-off-by: Claudio Matsuoka --- Makefile | 2 +- finit-alt.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2f4c3a1d..34243592 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ BINS = finit-mod finit-alt finit-mdv #finit-exb CFLAGS += -U_FORTIFY_SOURCE # Use -march=pentium-m to build for Eeepc -CFLAGS += -march=pentium-m +#CFLAGS += -march=pentium-m # Omit the first /sbin/hwclock if CONFIG_RTC_HCTOSYS is enabled in the kernel #CFLAGS += -DNO_HCTOSYS diff --git a/finit-alt.c b/finit-alt.c index f06223e0..8543fe8d 100644 --- a/finit-alt.c +++ b/finit-alt.c @@ -194,7 +194,6 @@ int main() int i; FILE *f; char line[LINE_SIZE]; - int fd; struct sigaction sa, act; sigset_t nmask, nmask2; char username[USERNAME_SIZE] = DEFUSER; @@ -208,6 +207,9 @@ int main() #ifdef RUNLEVEL struct utmp entry; #endif +#ifdef PAM_CONSOLE + int fd; +#endif chdir("/"); umask(022);