Skip to content
Snippets Groups Projects
Commit bd7f9ba1 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix NT build problem

parent 29924035
No related branches found
No related tags found
No related merge requests found
......@@ -142,6 +142,7 @@ load_editor( void )
printf("->load_editor()\n");
#endif
#ifdef HAVE_MKSTEMP
sprintf(entry_temp_file, "/tmp/udXXXXXX");
tmpfd = mkstemp(entry_temp_file);
......@@ -156,6 +157,14 @@ load_editor( void )
return(-1);
}
#else
fp = tmpfile();
if ( fp == NULL ) {
perror("tmpfile");
return(-1);
}
#endif
fprintf(fp, "## Directory entry of %s\n", Entry.name);
fprintf(fp, "##\n");
fprintf(fp, "## Syntax is:\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment