#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)
#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)
#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
*\r
*/\r
\r
+\r
+/* Stupid libc doesn't have a reliable way for use to know \r
+ * that libc5 is being used. Assume this is good enough */ \r
+#if defined __GLIBC__ || defined __UCLIBC__\r
+#error Sorry. Looks like you are using libc5. \r
+#error libc5 shm support isn't good enough.\r
+#error Please disable BB_FEATURE_IPC_SYSLOG \r
+#endif \r
+\r
#include <stdio.h>\r
#include <stdlib.h>\r
#include <string.h>\r
\r
exit(1);\r
}\r
-\r
#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
*\r
*/\r
\r
+\r
+/* Stupid libc doesn't have a reliable way for use to know \r
+ * that libc5 is being used. Assume this is good enough */ \r
+#if defined __GLIBC__ || defined __UCLIBC__\r
+#error Sorry. Looks like you are using libc5. \r
+#error libc5 shm support isn't good enough.\r
+#error Please disable BB_FEATURE_IPC_SYSLOG \r
+#endif \r
+\r
#include <stdio.h>\r
#include <stdlib.h>\r
#include <string.h>\r
\r
exit(1);\r
}\r
-\r