BugZilla: 19247. Add support for FreeBSD
authorlarryh%netscape.com
Tue, 23 Nov 1999 00:04:15 +0000
changeset 965 2f28bf17805bdaf0213f247bd0961dbc7969730f
parent 964 2e0d2218e93da0b60a2cfff3a051309328a0b440
child 966 a116a493548d73ebcfecf2147a8b585573ec2312
push idunknown
push userunknown
push dateunknown
bugs19247
BugZilla: 19247. Add support for FreeBSD
pr/src/md/unix/uxrng.c
--- a/pr/src/md/unix/uxrng.c
+++ b/pr/src/md/unix/uxrng.c
@@ -101,17 +101,17 @@ GetHighResClock(void *buf, size_t maxbyt
 #elif defined(AIX)
 
 static size_t
 GetHighResClock(void *buf, size_t maxbytes)
 {
     return 0;
 }
 
-#elif defined(LINUX)
+#elif (defined(LINUX) || defined(__FreeBSD__))
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <time.h>
 
 static int      fdDevRandom;
 static PRCallOnceType coOpenDevRandom;