bug-gnulib
[Top][All Lists]
Advanced

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

make getopt.c build in visual studio


From: Simon Josefsson
Subject: make getopt.c build in visual studio
Date: Tue, 28 Feb 2006 11:44:18 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

With this, getopt actually do seem to compile and work in Visual
Studio.  Tested with the CLI in libtasn1, part of GnuTLS, with long
options.

I'll install this shortly unless someone protests.

2006-02-28  Simon Josefsson  <address@hidden>

        * getopt.c: Protect #include of unistd.h, for MSVS.

--- getopt.c    24 Jan 2006 12:55:34 +0100      1.48
+++ getopt.c    28 Feb 2006 11:31:27 +0100      
@@ -29,7 +29,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 
 #ifdef VMS
 # include <unixlib.h>




reply via email to

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