Some updates for libc5
This commit is contained in:
parent
4e7244e6b2
commit
c319601db5
@ -35,6 +35,14 @@
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
/* Stupid libc doesn't have a reliable way for use to know
|
||||
* that libc5 is being used. Assume this is good enough */
|
||||
#if ! defined __GLIBC__ || ! defined __UCLIBC__
|
||||
/* libc5 doesn't define socklen_t */
|
||||
typedef unsigned int socklen_t;
|
||||
#endif
|
||||
|
||||
|
||||
/* Some useful definitions */
|
||||
#define FALSE ((int) 0)
|
||||
#define TRUE ((int) 1)
|
||||
|
@ -35,6 +35,14 @@
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
/* Stupid libc doesn't have a reliable way for use to know
|
||||
* that libc5 is being used. Assume this is good enough */
|
||||
#if ! defined __GLIBC__ || ! defined __UCLIBC__
|
||||
/* libc5 doesn't define socklen_t */
|
||||
typedef unsigned int socklen_t;
|
||||
#endif
|
||||
|
||||
|
||||
/* Some useful definitions */
|
||||
#define FALSE ((int) 0)
|
||||
#define TRUE ((int) 1)
|
||||
|
1
klogd.c
1
klogd.c
@ -43,7 +43,6 @@
|
||||
#if ! defined __GLIBC__ && ! defined __UCLIBC__
|
||||
#include <sys/syscall.h>
|
||||
#include <linux/unistd.h>
|
||||
typedef unsigned int socklen_t;
|
||||
|
||||
#ifndef __alpha__
|
||||
# define __NR_klogctl __NR_syslog
|
||||
|
10
logread.c
10
logread.c
@ -23,6 +23,15 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
/* Stupid libc doesn't have a reliable way for use to know
|
||||
* that libc5 is being used. Assume this is good enough */
|
||||
#if defined __GLIBC__ || defined __UCLIBC__
|
||||
#error Sorry. Looks like you are using libc5.
|
||||
#error libc5 shm support isn't good enough.
|
||||
#error Please disable BB_FEATURE_IPC_SYSLOG
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -134,4 +143,3 @@ static void error_exit(const char *str){
|
||||
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,6 @@
|
||||
#if ! defined __GLIBC__ && ! defined __UCLIBC__
|
||||
#include <sys/syscall.h>
|
||||
#include <linux/unistd.h>
|
||||
typedef unsigned int socklen_t;
|
||||
|
||||
#ifndef __alpha__
|
||||
# define __NR_klogctl __NR_syslog
|
||||
|
@ -23,6 +23,15 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
/* Stupid libc doesn't have a reliable way for use to know
|
||||
* that libc5 is being used. Assume this is good enough */
|
||||
#if defined __GLIBC__ || defined __UCLIBC__
|
||||
#error Sorry. Looks like you are using libc5.
|
||||
#error libc5 shm support isn't good enough.
|
||||
#error Please disable BB_FEATURE_IPC_SYSLOG
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -134,4 +143,3 @@ static void error_exit(const char *str){
|
||||
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user