diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-24 05:55:37 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-24 05:55:37 +0800 |
commit | 59fb9e47d78525a6f12af726da49b04f37930e67 (patch) | |
tree | d426452d5ac17151321b0b57faba6d06850e9cd3 /include/proto.h | |
parent | c8ca89f87d8fbd2e642a2787acb9bf02614ffe04 (diff) | |
download | pttbbs-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.h | 11 |
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); |