[HAVE_UNISTD_H]: Include unistd.h.
authorJim Meyering <jim@meyering.net>
Tue, 3 Jun 1997 20:01:47 +0000 (20:01 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 3 Jun 1997 20:01:47 +0000 (20:01 +0000)
John Gatewood Ham reported that this is necessary for DJGPP/Win95.

lib/fileblocks.c

index 0cfebb5..7f696ab 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert file size to number of blocks on System V-like machines.
-   Copyright (C) 1990 Free Software Foundation, Inc.
+   Copyright (C) 1990, 1997 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 # include <sys/types.h>
 # include <sys/param.h>
 
+# if HAVE_UNISTD_H
+#  include <unistd.h>
+# endif
+
 # ifndef NINDIR
 /* Some SysV's, like Irix, seem to lack these.  Hope they're correct. */
 /* Size of a indirect block, in bytes. */