emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix to fileio.c to un-break W32 build


From: Eric Hanchrow
Subject: Fix to fileio.c to un-break W32 build
Date: Tue, 04 May 2004 11:32:08 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

Building in Windows using MinGW suddenly broke -- Frename_file in
fileio.c calls the function Fmake_symbolic_link, but that function
isn't defined on Windows.  I think the right thing to do is simply
wrap the call in an `ifdef' like this, just as the definition of
Fmake_symbolic_link is:

    diff -bu "d:/cygwin/usr/local/src/emacs-cvs/src/fileio.c.~1.502.~" 
"d:/cygwin/usr/local/src/emacs-cvs/src/fileio.c"
    --- d:/cygwin/usr/local/src/emacs-cvs/src/fileio.c.~1.502.~ 2004-05-04 
11:18:24.049931500 -0700
    +++ d:/cygwin/usr/local/src/emacs-cvs/src/fileio.c      2004-05-04 
11:23:51.206030700 -0700
    @@ -2731,9 +2731,11 @@
                             /* We have already prompted if it was an integer,
                                so don't have copy-file prompt again.  */
                             NILP (ok_if_already_exists) ? Qnil : Qt, Qt);
    +#ifdef S_IFLNK
               else
                 Fmake_symbolic_link (symlink_target, newname,
                                      NILP (ok_if_already_exists) ? Qnil : Qt, 
Qt);
    +#endif
              Fdelete_file (file);
              }
           else

    Diff finished.  Tue May 04 11:30:00 2004

-- 
Adelle Davis used to say that she never saw anyone get cancer who
drank a quart of milk daily, as she did.  She stopped saying that when
she died of cancer in 1974.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]