MSVC cannot build clients/ud because the symbol mkstemp
is not found. Add tmpfile() support.
printf("->load_editor()\n");
#endif
+#ifdef HAVE_MKSTEMP
sprintf(entry_temp_file, "/tmp/udXXXXXX");
tmpfd = mkstemp(entry_temp_file);
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");