summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2001-03-15 18:20:23 +0000
committerEric Andersen2001-03-15 18:20:23 +0000
commita8035a51be6ddaf636847cfb1524b1beed0e8d18 (patch)
tree75794f0a910c381ba54b2db53f802ad6637c47e7
parent7384d7dce0f2a8a0541b0a6c9ce2b8a0d6e30b42 (diff)
downloadbusybox-a8035a51be6ddaf636847cfb1524b1beed0e8d18.zip
busybox-a8035a51be6ddaf636847cfb1524b1beed0e8d18.tar.gz
Move the warning msg after features.h gets pulled in.
-Erik
-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 a89dacc..17f6a54 100644
--- a/logread.c
+++ b/logread.c
@@ -24,14 +24,6 @@
*/
-/* 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 isnt good enough.
-#error Please disable BB_FEATURE_IPC_SYSLOG
-#endif
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -43,6 +35,15 @@
#include <setjmp.h>
#include "busybox.h"
+/* 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 isnt good enough.
+#error Please disable BB_FEATURE_IPC_SYSLOG
+#endif
+
+
static const long KEY_ID = 0x414e4547; /*"GENA"*/
static struct shbuf_ds {
diff --git a/sysklogd/logread.c b/sysklogd/logread.c
index a89dacc..17f6a54 100644
--- a/sysklogd/logread.c
+++ b/sysklogd/logread.c
@@ -24,14 +24,6 @@
*/
-/* 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 isnt good enough.
-#error Please disable BB_FEATURE_IPC_SYSLOG
-#endif
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -43,6 +35,15 @@
#include <setjmp.h>
#include "busybox.h"
+/* 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 isnt good enough.
+#error Please disable BB_FEATURE_IPC_SYSLOG
+#endif
+
+
static const long KEY_ID = 0x414e4547; /*"GENA"*/
static struct shbuf_ds {