mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
Make syslogd.c, init.c, and update.c compile error/warning free under both libc5 and libc6.
-Erik
This commit is contained in:
parent
b7362e36a8
commit
a15cd0be34
2
init.c
2
init.c
@ -93,7 +93,7 @@
|
||||
#if defined(__GLIBC__)
|
||||
#include <sys/kdaemon.h>
|
||||
#else
|
||||
_syscall2(int, bdflush, int, func, int, data);
|
||||
static _syscall2(int, bdflush, int, func, int, data);
|
||||
#endif /* __GLIBC__ */
|
||||
|
||||
|
||||
|
@ -93,7 +93,7 @@
|
||||
#if defined(__GLIBC__)
|
||||
#include <sys/kdaemon.h>
|
||||
#else
|
||||
_syscall2(int, bdflush, int, func, int, data);
|
||||
static _syscall2(int, bdflush, int, func, int, data);
|
||||
#endif /* __GLIBC__ */
|
||||
|
||||
|
||||
|
@ -28,12 +28,14 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/syslog.h>
|
||||
|
||||
|
||||
#if defined(__GLIBC__)
|
||||
#include <sys/kdaemon.h>
|
||||
#else
|
||||
_syscall2(int, bdflush, int, func, int, data);
|
||||
static _syscall2(int, bdflush, int, func, int, data);
|
||||
#endif /* __GLIBC__ */
|
||||
|
||||
|
||||
static char update_usage[] =
|
||||
"update [options]\n"
|
||||
#ifndef BB_FEATURE_TRIVIAL_HELP
|
||||
@ -109,7 +111,7 @@ extern int update_main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
}
|
||||
exit( TRUE);
|
||||
return( TRUE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -42,12 +42,10 @@
|
||||
#include <sys/param.h>
|
||||
#include <linux/unistd.h>
|
||||
|
||||
#ifndef socklen_t
|
||||
typedef unsigned int socklen_t;
|
||||
#endif
|
||||
|
||||
#if __GNU_LIBRARY__ < 5
|
||||
|
||||
typedef unsigned int socklen_t;
|
||||
|
||||
#ifndef __alpha__
|
||||
# define __NR_klogctl __NR_syslog
|
||||
static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
|
||||
|
@ -42,12 +42,10 @@
|
||||
#include <sys/param.h>
|
||||
#include <linux/unistd.h>
|
||||
|
||||
#ifndef socklen_t
|
||||
typedef unsigned int socklen_t;
|
||||
#endif
|
||||
|
||||
#if __GNU_LIBRARY__ < 5
|
||||
|
||||
typedef unsigned int socklen_t;
|
||||
|
||||
#ifndef __alpha__
|
||||
# define __NR_klogctl __NR_syslog
|
||||
static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
|
||||
|
6
update.c
6
update.c
@ -28,12 +28,14 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/syslog.h>
|
||||
|
||||
|
||||
#if defined(__GLIBC__)
|
||||
#include <sys/kdaemon.h>
|
||||
#else
|
||||
_syscall2(int, bdflush, int, func, int, data);
|
||||
static _syscall2(int, bdflush, int, func, int, data);
|
||||
#endif /* __GLIBC__ */
|
||||
|
||||
|
||||
static char update_usage[] =
|
||||
"update [options]\n"
|
||||
#ifndef BB_FEATURE_TRIVIAL_HELP
|
||||
@ -109,7 +111,7 @@ extern int update_main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
}
|
||||
exit( TRUE);
|
||||
return( TRUE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user