changeset 933:6c3fbfcdb059

[HAVE_UNISTD_H]: Include unistd.h. John Gatewood Ham reported that this is necessary for DJGPP/Win95.
author Jim Meyering <jim@meyering.net>
date Tue, 03 Jun 1997 20:01:47 +0000
parents 66e219181392
children 9cd1454db583
files lib/fileblocks.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/fileblocks.c
+++ b/lib/fileblocks.c
@@ -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
@@ -25,6 +25,10 @@
 # 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. */