summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-06-13 19:18:45 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-06-13 19:18:45 +0800
commit5eaead97b7f0a42bfea7438a772a8e338834cb0d (patch)
tree50eafe4c35894714776bdfdee0b40bb26828d8d9 /include
parent0c859e258ebdfcb14eca5cbe55395c3dd96066a2 (diff)
downloadpttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.tar
pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.tar.gz
pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.tar.bz2
pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.tar.lz
pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.tar.xz
pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.tar.zst
pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.zip
partial fix dietlibc supplemental library
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4352 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/bbs.h4
-rw-r--r--include/cmdiet.h17
-rw-r--r--include/proto.h11
3 files changed, 21 insertions, 11 deletions
diff --git a/include/bbs.h b/include/bbs.h
index 6e604626..63054477 100644
--- a/include/bbs.h
+++ b/include/bbs.h
@@ -49,6 +49,10 @@ extern "C" {
#include "cmsys.h"
#include "cmbbs.h"
+#ifdef __dietlibc__
+#include "cmdiet.h"
+#endif
+
#include "ansi.h"
#include "visio.h"
#include "statistic.h"
diff --git a/include/cmdiet.h b/include/cmdiet.h
new file mode 100644
index 00000000..ff12d4d8
--- /dev/null
+++ b/include/cmdiet.h
@@ -0,0 +1,17 @@
+/* $Id$ */
+
+#ifndef _CMDIET_H
+#define _CMDIET_H
+
+#ifdef __dietlibc__
+#define random glibc_random
+#define srandom glibc_srandom
+#define initstate glibc_initstate
+#define setstate glibc_setstate
+long int random(void);
+void srandom(unsigned int seed);
+char *initstate(unsigned int seed, char *state, size_t n);
+char *setstate(char *state);
+#endif
+
+#endif
diff --git a/include/proto.h b/include/proto.h
index 76f284b0..c2cc0a67 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -10,17 +10,6 @@
#define GCC_NORETURN
#endif
-#ifdef __dietlibc__
-#define random glibc_random
-#define srandom glibc_srandom
-#define initstate glibc_initstate
-#define setstate glibc_setstate
-long int random(void);
-void srandom(unsigned int seed);
-char *initstate(unsigned int seed, char *state, size_t n);
-char *setstate(char *state);
-#endif
-
/* admin */
int m_loginmsg(void);
int m_mod_board(char *bname);