aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-09 23:52:18 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-09 23:52:18 +0000
commit706cd0a9b3bb15cf437ca22b400a333877af0e37 (patch)
treee04e4a2329b9cf5c96b31fa064e6c85dfb8b9055 /init
parent5326414f31625194b265c0dfb8f45e932d52c482 (diff)
downloadbusybox-w32-706cd0a9b3bb15cf437ca22b400a333877af0e37.tar.gz
busybox-w32-706cd0a9b3bb15cf437ca22b400a333877af0e37.tar.bz2
busybox-w32-706cd0a9b3bb15cf437ca22b400a333877af0e37.zip
Update how we detect if libc5 is in use.
-Erik git-svn-id: svn://busybox.net/trunk/busybox@2292 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r--init/init.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/init/init.c b/init/init.c
index bf992b52c..619421891 100644
--- a/init/init.c
+++ b/init/init.c
@@ -85,13 +85,13 @@ static const int RB_ENABLE_CAD = 0x89abcdef;
85static const int RB_DISABLE_CAD = 0; 85static const int RB_DISABLE_CAD = 0;
86#define RB_POWER_OFF 0x4321fedc 86#define RB_POWER_OFF 0x4321fedc
87static const int RB_AUTOBOOT = 0x01234567; 87static const int RB_AUTOBOOT = 0x01234567;
88#if defined(__GLIBC__) || defined (__UCLIBC__) 88
89#include <sys/reboot.h> 89#if __GNU_LIBRARY__ > 5
90 #include <sys/reboot.h>
90 #define init_reboot(magic) reboot(magic) 91 #define init_reboot(magic) reboot(magic)
91#else 92#else
92 #define init_reboot(magic) reboot(0xfee1dead, 672274793, magic) 93 #define init_reboot(magic) reboot(0xfee1dead, 672274793, magic)
93#endif 94#endif
94#endif
95 95
96#ifndef _PATH_STDPATH 96#ifndef _PATH_STDPATH
97#define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" 97#define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
@@ -112,11 +112,11 @@ static const int RB_AUTOBOOT = 0x01234567;
112 112
113#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) 113#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
114 114
115#if defined(__GLIBC__) 115#if __GNU_LIBRARY__ > 5
116#include <sys/kdaemon.h> 116 #include <sys/kdaemon.h>
117#else 117#else
118extern int bdflush (int func, long int data); 118 extern int bdflush (int func, long int data);
119#endif /* __GLIBC__ */ 119#endif
120 120
121 121
122#define VT_PRIMARY "/dev/tty1" /* Primary virtual console */ 122#define VT_PRIMARY "/dev/tty1" /* Primary virtual console */