aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-03-14 01:15:06 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-03-14 01:15:06 +0000
commitd4add2d0958b6cae24b1fceab0250531b909ff84 (patch)
treeefcad9b20e7e88077ddf7d59315eeef3ca8459c9
parent7306ffd15e79b44d9fb1a0aa6c97e46ac49befab (diff)
downloadbusybox-w32-d4add2d0958b6cae24b1fceab0250531b909ff84.tar.gz
busybox-w32-d4add2d0958b6cae24b1fceab0250531b909ff84.tar.bz2
busybox-w32-d4add2d0958b6cae24b1fceab0250531b909ff84.zip
Some updates for libc5
git-svn-id: svn://busybox.net/trunk/busybox@2064 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--busybox.h8
-rw-r--r--include/busybox.h8
-rw-r--r--klogd.c1
-rw-r--r--logread.c10
-rw-r--r--sysklogd/klogd.c1
-rw-r--r--sysklogd/logread.c10
6 files changed, 34 insertions, 4 deletions
diff --git a/busybox.h b/busybox.h
index 7ae648501..977fe33ec 100644
--- a/busybox.h
+++ b/busybox.h
@@ -35,6 +35,14 @@
35#include "dmalloc.h" 35#include "dmalloc.h"
36#endif 36#endif
37 37
38/* Stupid libc doesn't have a reliable way for use to know
39 * that libc5 is being used. Assume this is good enough */
40#if ! defined __GLIBC__ || ! defined __UCLIBC__
41/* libc5 doesn't define socklen_t */
42typedef unsigned int socklen_t;
43#endif
44
45
38/* Some useful definitions */ 46/* Some useful definitions */
39#define FALSE ((int) 0) 47#define FALSE ((int) 0)
40#define TRUE ((int) 1) 48#define TRUE ((int) 1)
diff --git a/include/busybox.h b/include/busybox.h
index 7ae648501..977fe33ec 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -35,6 +35,14 @@
35#include "dmalloc.h" 35#include "dmalloc.h"
36#endif 36#endif
37 37
38/* Stupid libc doesn't have a reliable way for use to know
39 * that libc5 is being used. Assume this is good enough */
40#if ! defined __GLIBC__ || ! defined __UCLIBC__
41/* libc5 doesn't define socklen_t */
42typedef unsigned int socklen_t;
43#endif
44
45
38/* Some useful definitions */ 46/* Some useful definitions */
39#define FALSE ((int) 0) 47#define FALSE ((int) 0)
40#define TRUE ((int) 1) 48#define TRUE ((int) 1)
diff --git a/klogd.c b/klogd.c
index 7f7d6a142..d5e330bdf 100644
--- a/klogd.c
+++ b/klogd.c
@@ -43,7 +43,6 @@
43#if ! defined __GLIBC__ && ! defined __UCLIBC__ 43#if ! defined __GLIBC__ && ! defined __UCLIBC__
44#include <sys/syscall.h> 44#include <sys/syscall.h>
45#include <linux/unistd.h> 45#include <linux/unistd.h>
46typedef unsigned int socklen_t;
47 46
48#ifndef __alpha__ 47#ifndef __alpha__
49# define __NR_klogctl __NR_syslog 48# define __NR_klogctl __NR_syslog
diff --git a/logread.c b/logread.c
index 66054e601..85c1e2456 100644
--- a/logread.c
+++ b/logread.c
@@ -23,6 +23,15 @@
23 * 23 *
24 */ 24 */
25 25
26
27/* Stupid libc doesn't have a reliable way for use to know
28 * that libc5 is being used. Assume this is good enough */
29#if defined __GLIBC__ || defined __UCLIBC__
30#error Sorry. Looks like you are using libc5.
31#error libc5 shm support isn't good enough.
32#error Please disable BB_FEATURE_IPC_SYSLOG
33#endif
34
26#include <stdio.h> 35#include <stdio.h>
27#include <stdlib.h> 36#include <stdlib.h>
28#include <string.h> 37#include <string.h>
@@ -134,4 +143,3 @@ static void error_exit(const char *str){
134 143
135 exit(1); 144 exit(1);
136} 145}
137
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index 7f7d6a142..d5e330bdf 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -43,7 +43,6 @@
43#if ! defined __GLIBC__ && ! defined __UCLIBC__ 43#if ! defined __GLIBC__ && ! defined __UCLIBC__
44#include <sys/syscall.h> 44#include <sys/syscall.h>
45#include <linux/unistd.h> 45#include <linux/unistd.h>
46typedef unsigned int socklen_t;
47 46
48#ifndef __alpha__ 47#ifndef __alpha__
49# define __NR_klogctl __NR_syslog 48# define __NR_klogctl __NR_syslog
diff --git a/sysklogd/logread.c b/sysklogd/logread.c
index 66054e601..85c1e2456 100644
--- a/sysklogd/logread.c
+++ b/sysklogd/logread.c
@@ -23,6 +23,15 @@
23 * 23 *
24 */ 24 */
25 25
26
27/* Stupid libc doesn't have a reliable way for use to know
28 * that libc5 is being used. Assume this is good enough */
29#if defined __GLIBC__ || defined __UCLIBC__
30#error Sorry. Looks like you are using libc5.
31#error libc5 shm support isn't good enough.
32#error Please disable BB_FEATURE_IPC_SYSLOG
33#endif
34
26#include <stdio.h> 35#include <stdio.h>
27#include <stdlib.h> 36#include <stdlib.h>
28#include <string.h> 37#include <string.h>
@@ -134,4 +143,3 @@ static void error_exit(const char *str){
134 143
135 exit(1); 144 exit(1);
136} 145}
137