Use POSIX macros for linux

This commit is contained in:
chase
2018-05-24 16:24:41 -05:00
committed by Jon Trulson
parent 164e695cd0
commit 4f5e7fe5e3
265 changed files with 394 additions and 394 deletions

View File

@@ -228,7 +228,7 @@ bitsToBytes (unsigned long bits[2], char bytes[64])
* the OS's random number device.
*/
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
#define READ_LIMIT (sizeof (long) * 2)
static int
@@ -440,7 +440,7 @@ static int cryptoInited = 0;
int
InitCryptoKey( void )
{
#if defined(linux)
#if defined(__linux__)
/* non-blocking */
char *key_file = "/dev/urandom";
#elif defined(CSRG_BASED) || defined(sun)