[sr #107827] Build GnuTLS 3.0.2 for windows!
Nikos Mavrogiannopoulos
nmav at gnutls.org
Mon Oct 3 15:17:23 CEST 2011
2011/10/3 Bjørn Christensen <INVALID.NOREPLY at gnu.org>:
> I cannot cover all of egd.c with #ifndef _WIN32 unless I also do it for the
> headerfile.
> Or leave some empty function for the defined function in the header file.
Do you mean that a patch like the attached issues an error?
-------------- next part --------------
diff --git a/lib/nettle/egd.c b/lib/nettle/egd.c
index f472aed..7defc18 100644
--- a/lib/nettle/egd.c
+++ b/lib/nettle/egd.c
@@ -19,6 +19,9 @@
*/
#include <config.h>
+
+#ifndef _WIN32
+
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
@@ -268,3 +271,5 @@ restart:
return _length; /* success */
}
+
+#endif /* _WIN32 */
More information about the Gnutls-devel
mailing list