[PATCH] no fchmod() for MinGW32

Mark Brand mabrand at mabrand.nl
Fri Mar 2 21:44:58 CET 2012


Hi,

Ran into a little problem building gnutls 3.0.15 using mingw32. This 
patch works around the problem, but perhaps there's a better way.

regards,

Mark

diff --git a/src/libopts/makeshell.c b/src/libopts/makeshell.c
index 1730c81..45d170b 100644
--- a/src/libopts/makeshell.c
+++ b/src/libopts/makeshell.c
@@ -164,7 +164,9 @@ optionParseShell(tOptions * pOpts)
          printf(SHOW_PROG_ENV, pOpts->pzPROGNAME);

      fflush(stdout);
+#ifndef __MINGW32__
      fchmod(STDOUT_FILENO, 0755);
+#endif
      fclose(stdout);
      if (ferror(stdout)) {
          fputs(zOutputFail, stderr);




More information about the Gnutls-devel mailing list