To: vim-dev@vim.org Subject: Patch 6.1.284 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.284 Problem: On Solaris there is a warning for "struct utimbuf". Solution: Move including "utime.h" to outside the function. (Derek Wyatt) Files: src/fileio.c *** ../vim61.283/src/fileio.c Sun Jan 5 13:48:20 2003 --- src/fileio.c Tue Jan 7 21:26:47 2003 *************** *** 33,38 **** --- 33,42 ---- # include /* for SSIZE_MAX */ #endif + #if defined(HAVE_UTIME) && defined(HAVE_UTIME_H) + # include /* for struct utimbuf */ + #endif + #define BUFSIZE 8192 /* size of normal write buffer */ #define SMBUFSIZE 256 /* size of emergency write buffer */ *************** *** 2240,2247 **** time_t mtime; /* modification time */ { # if defined(HAVE_UTIME) && defined(HAVE_UTIME_H) - # include - struct utimbuf buf; buf.actime = atime; --- 2250,2255 ---- *************** *** 2249,2255 **** (void)utime((char *)fname, &buf); # else # if defined(HAVE_UTIMES) - struct timeval tvp[2]; tvp[0].tv_sec = atime; --- 2257,2262 ---- *** ../vim61.283/src/version.c Tue Jan 7 21:08:49 2003 --- src/version.c Tue Jan 7 21:27:32 2003 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 284, /**/ -- WOMAN: I didn't know we had a king. I thought we were an autonomous collective. DENNIS: You're fooling yourself. We're living in a dictatorship. A self-perpetuating autocracy in which the working classes-- WOMAN: Oh there you go, bringing class into it again. DENNIS: That's what it's all about if only people would-- The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///