Fix using right functions for file descriptor with MS Visual Studio

This commit is contained in:
kinichiro
2018-03-18 00:38:14 +09:00
parent 639a6629ae
commit 1fb8c9c6be
8 changed files with 59 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
--- tests/keypairtest.c.orig Sun Mar 18 00:31:20 2018
+++ tests/keypairtest.c Sun Mar 18 00:31:33 2018
@@ -15,6 +15,10 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifdef _MSC_VER
+#define NO_REDEF_POSIX_FUNCTIONS
+#endif
+
#include <sys/stat.h>
#include <err.h>

View File

@@ -0,0 +1,13 @@
--- tls/tls_config.c.orig Sun Mar 18 00:29:59 2018
+++ tls/tls_config.c Sun Mar 18 00:30:51 2018
@@ -15,6 +15,10 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifdef _MSC_VER
+#define NO_REDEF_POSIX_FUNCTIONS
+#endif
+
#include <sys/stat.h>
#include <ctype.h>

13
patches/tls_util.c.patch Normal file
View File

@@ -0,0 +1,13 @@
--- tls/tls_util.c.orig Sun Mar 18 00:30:07 2018
+++ tls/tls_util.c Sun Mar 18 00:31:09 2018
@@ -17,6 +17,10 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifdef _MSC_VER
+#define NO_REDEF_POSIX_FUNCTIONS
+#endif
+
#include <sys/stat.h>
#include <stdlib.h>