summaryrefslogtreecommitdiff
path: root/ports/winnt/include
diff options
context:
space:
mode:
Diffstat (limited to 'ports/winnt/include')
-rw-r--r--ports/winnt/include/config.h8
-rw-r--r--ports/winnt/include/termios.h2
2 files changed, 8 insertions, 2 deletions
diff --git a/ports/winnt/include/config.h b/ports/winnt/include/config.h
index b99aaa7..f56df9d 100644
--- a/ports/winnt/include/config.h
+++ b/ports/winnt/include/config.h
@@ -258,6 +258,7 @@ typedef int socklen_t;
/* Enable OpenSSL */
#define OPENSSL 1
+#define USE_OPENSSL_CRYPTO_RAND 1
/*
* Keywords and functions that Microsoft maps
@@ -299,9 +300,13 @@ typedef int socklen_t;
#define getpid _getpid
#define timegm _mkgmtime
#define errno_to_str isc__strerror
+/*
+ * symbol returning the name of the current function
+ */
+#define __func__ __FUNCTION__
typedef int pid_t; /* PID is an int */
-typedef int ssize_t; /* ssize is an int */
+typedef int ssize_t; /* ssize is an int */
/*
* Map the stream to the file number
@@ -452,6 +457,7 @@ typedef unsigned long uintptr_t;
#if defined(_MSC_VER) && _MSC_VER<1800
# define MISSING_INTTYPES_H 1 /* not provided by VS2012 and earlier */
# define MISSING_STDBOOL_H 1 /* not provided by VS2012 and earlier */
+# define MISSING_C99_STRUCT_INIT 1 /* see [Bug 2728] */
#else
#if defined(_MSC_VER) && _MSC_VER>=1800
/* VS2013 and above support C99 types */
diff --git a/ports/winnt/include/termios.h b/ports/winnt/include/termios.h
index 9c1cc62..94331af 100644
--- a/ports/winnt/include/termios.h
+++ b/ports/winnt/include/termios.h
@@ -205,7 +205,7 @@ struct termios
#define cfsetispeed(dcb, spd) (0)
extern int closeserial (int);
-extern int ioctl (int, int, int *);
+extern int ioctl (int, int, void *);
extern int tcsetattr (int, int, const struct termios *);
extern int tcgetattr (int, struct termios *);
extern int tcflush (int, int);