Hisashi T Fujinaka wrote:

> >> I think this worked for me, because there's something odd in 10.6 where
> >> gvim crashes. The crash log says
> >>
> >> Application Specific Information:
> >> abort() called
> >> USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER
> >>
> >> Anything that uses CoreFoundation isn't supposed just to fork, and the
> >> vim GUI in fink uses CoreFoundation via gtk+2.
> >>
> >> So I applied this patch (which I hope is right):
> >>
> >>
> >> diff -Naur vim-7.3.069.orig/src/gui.c vim-7.3.069/src/gui.c
> >> --- vim-7.3.069.orig/src/gui.c     2010-11-25 14:56:25.000000000 -0800
> >> +++ vim-7.3.069/src/gui.c  2010-11-25 14:58:35.000000000 -0800
> >> @@ -59,7 +59,7 @@
> >>   gui_start()
> >>   {
> >>       char_u       *old_term;
> >> -#if defined(UNIX) && !defined(__BEOS__) && !defined(MACOS_X)
> >> +#if defined(UNIX) && !defined(__BEOS__) && !defined(MACOS_X) && 
> >> !defined(__APPLE__)
> >>   # define MAY_FORK
> >>       int          dofork = TRUE;
> >>   #endif
> >
> > I wonder why __APPLE__ is defined while MACOS_X isn't.  Perhaps the
> > solution would be to define MACOS_X ?  I don't know what version you are
> > building.
> 
> 7.3.69? It's like I said before, I'm building the x version. It doesn't
> build things like os_macosx.m and if it tries the build dies.

Ah, you are building the Unix version on Mac.  Then MACOS_X is not
defined (confusing that building with X on Mac doesn't define this).

I see __APPLE__ is also used in os_unix.c, thus it should be OK.

However, I know others have been building Vim with GTK on Mac.  Why
didn't they run into this problem?  Perhaps we need another condition
that more specifically detects the situation where fork doesn't work.

-- 
ARTHUR:       You are indeed brave Sir knight, but the fight is mine.
BLACK KNIGHT: Had enough?
ARTHUR:       You stupid bastard.  You havn't got any arms left.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui