gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] no fchmod() for MinGW32


From: Mark Brand
Subject: [PATCH] no fchmod() for MinGW32
Date: Fri, 02 Mar 2012 21:44:58 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120215 Firefox/10.0.2 SeaMonkey/2.7.2

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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]