mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
AppVeyor compile errors resolution.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include <winsock.h>
|
||||
#include <io.h>
|
||||
#include <fcntl.h>
|
||||
#include <direct.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
@@ -16,10 +17,9 @@ static int
|
||||
mkstemp(char *p)
|
||||
{
|
||||
char *template, *path;
|
||||
char *path;
|
||||
int fd;
|
||||
|
||||
template = strdup(p);
|
||||
template = _strdup(p);
|
||||
if (template == NULL) return -1;
|
||||
path = _mktemp(template);
|
||||
if (path[0] == 0) {
|
||||
|
||||
Reference in New Issue
Block a user