Fix setvbuf() calls for Windows.
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-branch-2-0/src/snc/snc_main.c new-branch-2-0/src/snc/snc_main.c
--- old-branch-2-0/src/snc/snc_main.c 2022-09-28 12:06:55.509387589 +0200
+++ new-branch-2-0/src/snc/snc_main.c 2022-09-28 12:06:55.509387589 +0200
@@ -109,8 +109,8 @@
src_file = in_file;
/* Use line buffered output */
- setvbuf(stdout, NULL, _IOLBF, 0);
- setvbuf(stderr, NULL, _IOLBF, 0);
+ setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
+ setvbuf(stderr, NULL, _IOLBF, BUFSIZ);
printf("/* %s: %s */\n", sncVersion, in_file);
patch ef23b19503918b7e53f27076932f94bcd3729673
Author: Andrew Johnson <anj@aps.anl.gov>
Date: Tue May 27 19:48:24 CEST 2008
* Fix setvbuf() calls for Windows