]> andersk Git - gssapi-openssh.git/blobdiff - openssh/openbsd-compat/bsd-misc.c
fix another AIX build problem
[gssapi-openssh.git] / openssh / openbsd-compat / bsd-misc.c
index dae90122b0137955cb28d6c7b43adbaad7362de9..d87d56218c8a856c39e185f3ca62b0295b45a604 100644 (file)
@@ -99,22 +99,3 @@ int utimes(char *filename, struct timeval *tvp)
        return(utime(filename, &ub));
 }
 #endif 
-
-#ifndef HAVE_TRUNCATE
-int truncate (const char *path, off_t length)
-{
-       int fd, ret, saverrno;
-
-       fd = open(path, O_WRONLY);
-       if (fd < 0)
-               return -1;
-
-       ret = ftruncate(fd, length);
-       saverrno = errno;
-       (void) close (fd);
-       if (ret == -1)
-               errno = saverrno;
-       return(ret);
-}
-#endif /* HAVE_TRUNCATE */
-
This page took 0.037549 seconds and 4 git commands to generate.