aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--logread.c17
-rw-r--r--sysklogd/logread.c17
2 files changed, 18 insertions, 16 deletions
diff --git a/logread.c b/logread.c
index a89daccbb..17f6a54d6 100644
--- a/logread.c
+++ b/logread.c
@@ -24,14 +24,6 @@
24 */ 24 */
25 25
26 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 isnt good enough.
32#error Please disable BB_FEATURE_IPC_SYSLOG
33#endif
34
35#include <stdio.h> 27#include <stdio.h>
36#include <stdlib.h> 28#include <stdlib.h>
37#include <string.h> 29#include <string.h>
@@ -43,6 +35,15 @@
43#include <setjmp.h> 35#include <setjmp.h>
44#include "busybox.h" 36#include "busybox.h"
45 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#error Sorry. Looks like you are using libc5.
42#error libc5 shm support isnt good enough.
43#error Please disable BB_FEATURE_IPC_SYSLOG
44#endif
45
46
46static const long KEY_ID = 0x414e4547; /*"GENA"*/ 47static const long KEY_ID = 0x414e4547; /*"GENA"*/
47 48
48static struct shbuf_ds { 49static struct shbuf_ds {
diff --git a/sysklogd/logread.c b/sysklogd/logread.c
index a89daccbb..17f6a54d6 100644
--- a/sysklogd/logread.c
+++ b/sysklogd/logread.c
@@ -24,14 +24,6 @@
24 */ 24 */
25 25
26 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 isnt good enough.
32#error Please disable BB_FEATURE_IPC_SYSLOG
33#endif
34
35#include <stdio.h> 27#include <stdio.h>
36#include <stdlib.h> 28#include <stdlib.h>
37#include <string.h> 29#include <string.h>
@@ -43,6 +35,15 @@
43#include <setjmp.h> 35#include <setjmp.h>
44#include "busybox.h" 36#include "busybox.h"
45 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#error Sorry. Looks like you are using libc5.
42#error libc5 shm support isnt good enough.
43#error Please disable BB_FEATURE_IPC_SYSLOG
44#endif
45
46
46static const long KEY_ID = 0x414e4547; /*"GENA"*/ 47static const long KEY_ID = 0x414e4547; /*"GENA"*/
47 48
48static struct shbuf_ds { 49static struct shbuf_ds {