Karsten Hopp 73d259
To: vim-dev@vim.org
Karsten Hopp 73d259
Subject: Patch 7.0.110
Karsten Hopp 73d259
Fcc: outbox
Karsten Hopp 73d259
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 73d259
Mime-Version: 1.0
Karsten Hopp 73d259
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 73d259
Content-Transfer-Encoding: 8bit
Karsten Hopp 73d259
------------
Karsten Hopp 73d259
Karsten Hopp 73d259
Patch 7.0.110
Karsten Hopp 73d259
Problem:    Amiga: Compilation problems when not using libnix.
Karsten Hopp 73d259
Solution:   Change a few #ifdefs. (Willy Catteau)
Karsten Hopp 73d259
Files:	    src/memfile.c
Karsten Hopp 73d259
Karsten Hopp 73d259
Karsten Hopp 73d259
*** ../vim-7.0.109/src/memfile.c	Tue Mar  7 00:27:12 2006
Karsten Hopp 73d259
--- src/memfile.c	Sun Sep 17 15:50:00 2006
Karsten Hopp 73d259
***************
Karsten Hopp 73d259
*** 517,523 ****
Karsten Hopp 73d259
  	mf_ins_free(mfp, hp);	/* put *hp in the free list */
Karsten Hopp 73d259
  }
Karsten Hopp 73d259
  
Karsten Hopp 73d259
! #if defined(__MORPHOS__)
Karsten Hopp 73d259
  /* function is missing in MorphOS libnix version */
Karsten Hopp 73d259
  extern unsigned long *__stdfiledes;
Karsten Hopp 73d259
  
Karsten Hopp 73d259
--- 517,523 ----
Karsten Hopp 73d259
  	mf_ins_free(mfp, hp);	/* put *hp in the free list */
Karsten Hopp 73d259
  }
Karsten Hopp 73d259
  
Karsten Hopp 73d259
! #if defined(__MORPHOS__) && defined(__libnix__)
Karsten Hopp 73d259
  /* function is missing in MorphOS libnix version */
Karsten Hopp 73d259
  extern unsigned long *__stdfiledes;
Karsten Hopp 73d259
  
Karsten Hopp 73d259
***************
Karsten Hopp 73d259
*** 677,691 ****
Karsten Hopp 73d259
  #  else
Karsten Hopp 73d259
  #   if defined(_DCC) || defined(__GNUC__) || defined(__MORPHOS__)
Karsten Hopp 73d259
  	{
Karsten Hopp 73d259
! #    if defined(__GNUC__) && !defined(__MORPHOS__)
Karsten Hopp 73d259
  	    /* Have function (in libnix at least),
Karsten Hopp 73d259
  	     * but ain't got no prototype anywhere. */
Karsten Hopp 73d259
  	    extern unsigned long fdtofh(int filedescriptor);
Karsten Hopp 73d259
  #    endif
Karsten Hopp 73d259
  	    BPTR fh = (BPTR)fdtofh(mfp->mf_fd);
Karsten Hopp 73d259
  
Karsten Hopp 73d259
  	    if (fh != 0)
Karsten Hopp 73d259
  		Flush(fh);
Karsten Hopp 73d259
  	}
Karsten Hopp 73d259
  #   else /* assume Manx */
Karsten Hopp 73d259
  	    Flush(_devtab[mfp->mf_fd].fd);
Karsten Hopp 73d259
--- 677,695 ----
Karsten Hopp 73d259
  #  else
Karsten Hopp 73d259
  #   if defined(_DCC) || defined(__GNUC__) || defined(__MORPHOS__)
Karsten Hopp 73d259
  	{
Karsten Hopp 73d259
! #    if defined(__GNUC__) && !defined(__MORPHOS__) && defined(__libnix__)
Karsten Hopp 73d259
  	    /* Have function (in libnix at least),
Karsten Hopp 73d259
  	     * but ain't got no prototype anywhere. */
Karsten Hopp 73d259
  	    extern unsigned long fdtofh(int filedescriptor);
Karsten Hopp 73d259
  #    endif
Karsten Hopp 73d259
+ #    if !defined(__libnix__)
Karsten Hopp 73d259
+ 	    fflush(NULL);
Karsten Hopp 73d259
+ #    else
Karsten Hopp 73d259
  	    BPTR fh = (BPTR)fdtofh(mfp->mf_fd);
Karsten Hopp 73d259
  
Karsten Hopp 73d259
  	    if (fh != 0)
Karsten Hopp 73d259
  		Flush(fh);
Karsten Hopp 73d259
+ #    endif
Karsten Hopp 73d259
  	}
Karsten Hopp 73d259
  #   else /* assume Manx */
Karsten Hopp 73d259
  	    Flush(_devtab[mfp->mf_fd].fd);
Karsten Hopp 73d259
*** ../vim-7.0.109/src/version.c	Fri Sep 15 20:17:49 2006
Karsten Hopp 73d259
--- src/version.c	Tue Sep 26 13:48:48 2006
Karsten Hopp 73d259
***************
Karsten Hopp 73d259
*** 668,669 ****
Karsten Hopp 73d259
--- 668,671 ----
Karsten Hopp 73d259
  {   /* Add new patch number below this line */
Karsten Hopp 73d259
+ /**/
Karsten Hopp 73d259
+     110,
Karsten Hopp 73d259
  /**/
Karsten Hopp 73d259
Karsten Hopp 73d259
-- 
Karsten Hopp 73d259
A fool must search for a greater fool to find admiration.
Karsten Hopp 73d259
Karsten Hopp 73d259
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 73d259
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 73d259
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 73d259
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///