diff options
Diffstat (limited to 'src/lib/libcrypto/rand/rand_os2.c')
| -rw-r--r-- | src/lib/libcrypto/rand/rand_os2.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/libcrypto/rand/rand_os2.c b/src/lib/libcrypto/rand/rand_os2.c index fc1e78b179..c3e36d4e5e 100644 --- a/src/lib/libcrypto/rand/rand_os2.c +++ b/src/lib/libcrypto/rand/rand_os2.c | |||
| @@ -78,10 +78,8 @@ typedef struct _CPUUTIL { | |||
| 78 | ULONG ulIntrHigh; /* High 32 bits of interrupt time */ | 78 | ULONG ulIntrHigh; /* High 32 bits of interrupt time */ |
| 79 | } CPUUTIL; | 79 | } CPUUTIL; |
| 80 | 80 | ||
| 81 | #ifndef __KLIBC__ | ||
| 82 | APIRET APIENTRY(*DosPerfSysCall) (ULONG ulCommand, ULONG ulParm1, ULONG ulParm2, ULONG ulParm3) = NULL; | 81 | APIRET APIENTRY(*DosPerfSysCall) (ULONG ulCommand, ULONG ulParm1, ULONG ulParm2, ULONG ulParm3) = NULL; |
| 83 | APIRET APIENTRY(*DosQuerySysState) (ULONG func, ULONG arg1, ULONG pid, ULONG _res_, PVOID buf, ULONG bufsz) = NULL; | 82 | APIRET APIENTRY(*DosQuerySysState) (ULONG func, ULONG arg1, ULONG pid, ULONG _res_, PVOID buf, ULONG bufsz) = NULL; |
| 84 | #endif | ||
| 85 | HMODULE hDoscalls = 0; | 83 | HMODULE hDoscalls = 0; |
| 86 | 84 | ||
| 87 | int RAND_poll(void) | 85 | int RAND_poll(void) |
| @@ -93,7 +91,6 @@ int RAND_poll(void) | |||
| 93 | if (hDoscalls == 0) { | 91 | if (hDoscalls == 0) { |
| 94 | ULONG rc = DosLoadModule(failed_module, sizeof(failed_module), "DOSCALLS", &hDoscalls); | 92 | ULONG rc = DosLoadModule(failed_module, sizeof(failed_module), "DOSCALLS", &hDoscalls); |
| 95 | 93 | ||
| 96 | #ifndef __KLIBC__ | ||
| 97 | if (rc == 0) { | 94 | if (rc == 0) { |
| 98 | rc = DosQueryProcAddr(hDoscalls, 976, NULL, (PFN *)&DosPerfSysCall); | 95 | rc = DosQueryProcAddr(hDoscalls, 976, NULL, (PFN *)&DosPerfSysCall); |
| 99 | 96 | ||
| @@ -105,7 +102,6 @@ int RAND_poll(void) | |||
| 105 | if (rc) | 102 | if (rc) |
| 106 | DosQuerySysState = NULL; | 103 | DosQuerySysState = NULL; |
| 107 | } | 104 | } |
| 108 | #endif | ||
| 109 | } | 105 | } |
| 110 | 106 | ||
| 111 | /* Sample the hi-res timer, runs at around 1.1 MHz */ | 107 | /* Sample the hi-res timer, runs at around 1.1 MHz */ |
| @@ -126,9 +122,7 @@ int RAND_poll(void) | |||
| 126 | RAND_add(&util, sizeof(util), 10); | 122 | RAND_add(&util, sizeof(util), 10); |
| 127 | } | 123 | } |
| 128 | else { | 124 | else { |
| 129 | #ifndef __KLIBC__ | ||
| 130 | DosPerfSysCall = NULL; | 125 | DosPerfSysCall = NULL; |
| 131 | #endif | ||
| 132 | } | 126 | } |
| 133 | } | 127 | } |
| 134 | 128 | ||
