From 59fb9e47d78525a6f12af726da49b04f37930e67 Mon Sep 17 00:00:00 2001 From: kcwu Date: Wed, 23 Feb 2005 21:55:37 +0000 Subject: fix dietlibc support git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2535 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') 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); -- cgit v1.2.3