summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-02 18:44:11 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-02 18:44:11 +0000
commit97f2714e358cc625e9057f29a320fbd078851741 (patch)
tree3284260782e5ebede73248bbd1c2ed3bb2b402d1
parent11e8886958ed745a0bfe2113478105d9b508b36a (diff)
downloadcoreutils-97f2714e358cc625e9057f29a320fbd078851741.tar.xz
Use Autoconf-suggested pattern for inttypes and stdint.
Include unistd.h, for lseek.
-rw-r--r--lib/fsusage.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/fsusage.c b/lib/fsusage.c
index 7868a66b6..f1dfb2d7e 100644
--- a/lib/fsusage.c
+++ b/lib/fsusage.c
@@ -23,10 +23,12 @@
#if HAVE_INTTYPES_H
# include <inttypes.h>
-#else
-# if HAVE_STDINT_H
-# include <stdint.h>
-# endif
+#endif
+#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#if HAVE_UNISTD_H
+# include <unistd.h>
#endif
#ifndef UINTMAX_MAX
# define UINTMAX_MAX ((uintmax_t) -1)