summaryrefslogtreecommitdiffstats
path: root/include/proto.h
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-24 05:55:37 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-24 05:55:37 +0800
commit59fb9e47d78525a6f12af726da49b04f37930e67 (patch)
treed426452d5ac17151321b0b57faba6d06850e9cd3 /include/proto.h
parentc8ca89f87d8fbd2e642a2787acb9bf02614ffe04 (diff)
downloadpttbbs-59fb9e47d78525a6f12af726da49b04f37930e67.tar
pttbbs-59fb9e47d78525a6f12af726da49b04f37930e67.tar.gz
pttbbs-59fb9e47d78525a6f12af726da49b04f37930e67.tar.bz2
pttbbs-59fb9e47d78525a6f12af726da49b04f37930e67.tar.lz
pttbbs-59fb9e47d78525a6f12af726da49b04f37930e67.tar.xz
pttbbs-59fb9e47d78525a6f12af726da49b04f37930e67.tar.zst
pttbbs-59fb9e47d78525a6f12af726da49b04f37930e67.zip
fix dietlibc support
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2535 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/proto.h')
-rw-r--r--include/proto.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/proto.h b/include/proto.h
index a84c2fbb..a6b9104d 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -10,6 +10,17 @@
#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);