MINGW-packages/mingw-w64-gnuplot/03-fix-build-doc2web.patch
مهدي شينون (Mehdi Chinoune) aa5f16d803 gnuplot: update to 6.0.0
2024-01-06 10:10:56 +01:00

16 lines
454 B
Diff

--- a/docs/doc2web.c
+++ b/docs/doc2web.c
@@ -582,10 +582,12 @@
strncpy(knownfile, path, PATH_MAX-1);
strncat(knownfile, sectionname, PATH_MAX-strlen(knownfile)-6);
strcat(knownfile,".html");
+#ifndef _WIN32
if (symlink(locfile, knownfile)) {
perror("doc2web: Can't create symlink ");
exit(EXIT_FAILURE);
}
+#endif
fprintf(stderr,"Creating symlink %s for %s\n", knownfile, newfile);
/* Start the new file */