aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/init/init.c b/init/init.c
index 159b53912..ae2fd4c3a 100644
--- a/init/init.c
+++ b/init/init.c
@@ -53,7 +53,7 @@
53#endif 53#endif
54 54
55 55
56#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_MMU__) 56#if defined(__UCLIBC__) && !defined(__ARCH_HAS_MMU__)
57#define fork vfork 57#define fork vfork
58#endif 58#endif
59 59
@@ -913,7 +913,7 @@ static void check_memory(void)
913 if (check_free_memory() > 1000) 913 if (check_free_memory() > 1000)
914 return; 914 return;
915 915
916#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) 916#if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__)
917 if (stat("/etc/fstab", &statBuf) == 0) { 917 if (stat("/etc/fstab", &statBuf) == 0) {
918 /* swapon -a requires /proc typically */ 918 /* swapon -a requires /proc typically */
919 new_init_action(SYSINIT, "/bin/mount -t proc proc /proc", ""); 919 new_init_action(SYSINIT, "/bin/mount -t proc proc /proc", "");
@@ -957,7 +957,7 @@ static void parse_inittab(void)
957 new_init_action(CTRLALTDEL, "/sbin/reboot", ""); 957 new_init_action(CTRLALTDEL, "/sbin/reboot", "");
958 /* Umount all filesystems on halt/reboot */ 958 /* Umount all filesystems on halt/reboot */
959 new_init_action(SHUTDOWN, "/bin/umount -a -r", ""); 959 new_init_action(SHUTDOWN, "/bin/umount -a -r", "");
960#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) 960#if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__)
961 /* Swapoff on halt/reboot */ 961 /* Swapoff on halt/reboot */
962 new_init_action(SHUTDOWN, "/sbin/swapoff -a", ""); 962 new_init_action(SHUTDOWN, "/sbin/swapoff -a", "");
963#endif 963#endif