diff options
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -85,13 +85,13 @@ static const int RB_ENABLE_CAD = 0x89abcdef; | |||
85 | static const int RB_DISABLE_CAD = 0; | 85 | static const int RB_DISABLE_CAD = 0; |
86 | #define RB_POWER_OFF 0x4321fedc | 86 | #define RB_POWER_OFF 0x4321fedc |
87 | static const int RB_AUTOBOOT = 0x01234567; | 87 | static 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 |
118 | extern 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 */ |