Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit b181acc

Browse files
committed
random: Fix uwp compilation.
1 parent 7a323fc commit b181acc

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

random/random-drbg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
#ifdef HAVE_W32_SYSTEM
163163
# include <process.h>
164164
# if defined(WINAPI_FAMILY) && (WINAPI_FAMILY==WINAPI_FAMILY_PC_APP || WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP)
165+
# include <windows.h>
165166
# define getpid() GetCurrentProcessId()
166167
# endif
167168
#endif

random/random.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#ifdef HAVE_W32_SYSTEM
4848
# include <process.h>
4949
# if defined(WINAPI_FAMILY) && (WINAPI_FAMILY==WINAPI_FAMILY_PC_APP || WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP)
50+
# include <windows.h>
5051
# define getpid() GetCurrentProcessId()
5152
# endif
5253
#endif

random/rndw32uwp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "config.h"
2020
#include "types.h"
2121
#include "g10lib.h"
22+
#include "windows.h"
2223

2324
using namespace Platform;
2425
using namespace Windows::Security::Cryptography;

0 commit comments

Comments
 (0)