ftell: don't include <unistd.h>
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Jul 2011 16:42:48 +0000 (09:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Jul 2011 16:43:43 +0000 (09:43 -0700)
* lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
guaranteed to define off_t, and the ftell module depends on the
stdio module.

ChangeLog
lib/ftell.c

index 63c0367..bc6aef8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
 
+       ftell: don't include <unistd.h>
+       * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
+       guaranteed to define off_t, and the ftell module depends on the
+       stdio module.
+
        ftell: do not assume wraparound signed arithmetic
        * lib/ftell.c: Include <limits.h>.
        (ftell): Don't assume wraparound signed arithmetic.
index babba35..ebf0bb7 100644 (file)
@@ -21,8 +21,6 @@
 
 #include <errno.h>
 #include <limits.h>
-/* Get off_t.  */
-#include <unistd.h>
 
 long
 ftell (FILE *fp)