# endif
#else /* _WIN32 */
-# define _gnutls_fork_set_val() 0
+# define _gnutls_fork_set_val(x) 0
# define _gnutls_register_fork_handler() 0
# define _gnutls_fork_detected(x) 0
#endif
static HCRYPTPROV device_fd = 0;
+static
int _rnd_get_system_entropy_win32(void* rnd, size_t size)
{
if (!CryptGenRandom(device_fd, (DWORD) size, rnd)) {
int gnutls_system_global_init(void);
void gnutls_system_global_deinit(void);
-#include <arpa/inet.h>
-#ifdef _WIN32
+#ifndef _WIN32
+# include <arpa/inet.h>
+#else
# define inet_aton _gnutls_inet_aton
int inet_aton(const char *cp, struct in_addr *inp);
#endif
if (dirp != NULL) {
do {
d = readdir(dirp);
- if (d != NULL && d->d_type == DT_REG) {
+ if (d != NULL
+#ifndef _WIN32
+ && d->d_type == DT_REG
+#endif
+ ) {
snprintf(path, sizeof(path), "%s/%s",
dirname, d->d_name);