From 935c80d5e6ae1f562c47591f10e9102cedd93f8c Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 10 Jan 2006 00:55:45 +0000 Subject: Bug 5961 - new RAND() function git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7920 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/asterisk') diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index 8e1c5a9dd..8fd42445b 100644 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -235,4 +235,10 @@ char *ast_process_quotes_and_slashes(char *start, char find, char replace_with); int getloadavg(double *list, int nelem); #endif +#ifdef linux +#define ast_random random +#else +long int ast_random(void); +#endif + #endif /* _ASTERISK_UTILS_H */ -- cgit v1.2.3