getdate.y: reject an out-of-range timezone value
[gnulib.git] / lib / ftruncate.c
index 4bfa431..ff7d11b 100644 (file)
@@ -1,9 +1,10 @@
 /* ftruncate emulations that work on some System V's.
    This file is in the public domain.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
+
+/* Specification.  */
+#include <unistd.h>
 
 #include <sys/types.h>
 #include <fcntl.h>
@@ -23,7 +24,6 @@ ftruncate (int fd, off_t length)
 
 #  include <sys/stat.h>
 #  include <errno.h>
-#  include <unistd.h>
 
 int
 ftruncate (int fd, off_t length)
@@ -66,7 +66,7 @@ ftruncate (int fd, off_t length)
 }
 
 # else /* not F_CHSIZE nor F_FREESP */
-#  if HAVE_CHSIZE
+#  if HAVE_CHSIZE                      /* native Windows, e.g. mingw */
 
 int
 ftruncate (int fd, off_t length)