unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Fix to fileio.c to un-break W32 build
@ 2004-05-04 18:32 Eric Hanchrow
  2004-05-04 19:25 ` Jan D.
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Hanchrow @ 2004-05-04 18:32 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fix to fileio.c to un-break W32 build
  2004-05-04 18:32 Fix to fileio.c to un-break W32 build Eric Hanchrow
@ 2004-05-04 19:25 ` Jan D.
  0 siblings, 0 replies; 2+ messages in thread
From: Jan D. @ 2004-05-04 19:25 UTC (permalink / raw)
  Cc: emacs-devel

> 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:

A bit different fix checked in, please try again.

Thanks,

	Jan D.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-04 19:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-04 18:32 Fix to fileio.c to un-break W32 build Eric Hanchrow
2004-05-04 19:25 ` Jan D.

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).