mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-03-13 16:35:18 +02:00
.
This commit is contained in:
@@ -15,11 +15,6 @@
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <errno.h>
|
||||
#ifndef STDC_HEADERS
|
||||
extern int errno;
|
||||
#endif
|
||||
|
||||
#ifdef F_CHSIZE
|
||||
|
||||
int
|
||||
@@ -36,10 +31,8 @@ ftruncate (fd, length)
|
||||
/* By William Kucharski <kucharsk@netcom.com>. */
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
int
|
||||
ftruncate (fd, length)
|
||||
@@ -96,6 +89,11 @@ ftruncate (fd, length)
|
||||
|
||||
#else /* not F_CHSIZE nor F_FREESP nor HAVE_CHSIZE */
|
||||
|
||||
#include <errno.h>
|
||||
#ifndef errno
|
||||
extern int errno;
|
||||
#endif
|
||||
|
||||
int
|
||||
ftruncate (fd, length)
|
||||
int fd;
|
||||
|
||||
Reference in New Issue
Block a user