Package: jvim
Version: 3.0-2.1b-1
Severity: important
Tags: patch

Hi,

please find attached a patch to add support for GNU/kFreeBSD to jvim,
which FTBFS, as you can check on <http://experimental.ftbfs.de/>.

Cheers,

-- 
Cyril Brulebois
--- build-tree/vim/src/unix.c	2007-04-05 07:24:44.815892000 +0200
+++ build-tree/vim/src/unix.c	2007-04-05 07:26:34.000000000 +0200
@@ -33,7 +33,7 @@
 # if !defined(SCO) && !defined(SOLARIS) && !defined(hpux) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(_SEQUENT_) && !defined(UNISYS) && !defined(__sgi) && !defined(AIX) && !defined(__bsdi__)	/* SCO returns pid_t */
 extern int fork();
 # endif
-# if !defined(__GNU__) && !defined(linux) && !defined(SOLARIS) && !defined(USL) && !defined(sun) && !(defined(hpux) && defined(__STDC__)) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(USL) && !defined(UNISYS) && !defined(sony) && !defined(__sgi) && !defined(AIX) && !defined(__CYGWIN__) && !defined(__bsdi__)
+# if !defined(__GNU__) && !defined(linux) && !defined(SOLARIS) && !defined(USL) && !defined(sun) && !(defined(hpux) && defined(__STDC__)) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(USL) && !defined(UNISYS) && !defined(sony) && !defined(__sgi) && !defined(AIX) && !defined(__CYGWIN__) && !defined(__bsdi__) && !defined(__GLIBC__)
 extern int execvp __ARGS((const char *, const char **));
 # endif
 #endif
@@ -116,7 +116,7 @@
 #ifdef USL
 static void sig_winch __ARGS((int));
 #else
-# if defined(SIGWINCH) && !defined(linux) && !defined(__alpha) && !defined(mips) && !defined(_SEQUENT_) && !defined(SCO) && !defined(SOLARIS) && !defined(ISC) && !defined(__CYGWIN__)
+# if defined(SIGWINCH) && !defined(linux) && !defined(__alpha) && !defined(mips) && !defined(_SEQUENT_) && !defined(SCO) && !defined(SOLARIS) && !defined(ISC) && !defined(__CYGWIN__) && !defined(__GLIBC__)
 static void sig_winch __ARGS((int, int, struct sigcontext *));
 # endif
 #endif
@@ -702,7 +702,7 @@
 		 */
 		if ((p = STRRCHR(fname, '/')) != NULL)
 		{
-#if defined(SYSV_UNIX) || defined(USL) || defined(hpux) || defined(linux)
+#if defined(SYSV_UNIX) || defined(USL) || defined(hpux) || defined(linux) || defined(__GLIBC__)
 			if (getcwd((char *)olddir, MAXPATHL) == NULL)
 #else
 			if (getwd((char *)olddir) == NULL)
@@ -722,7 +722,7 @@
 				*p = c;
 			}
 		}
-#if defined(SYSV_UNIX) || defined(USL) || defined(hpux) || defined(linux)
+#if defined(SYSV_UNIX) || defined(USL) || defined(hpux) || defined(linux) || defined(__GLIBC__)
 		if (getcwd((char *)buf, len) == NULL)
 #else
 		if (getwd((char *)buf) == NULL)
@@ -1307,7 +1307,7 @@
 #if !defined(__alpha) && !defined(mips) && !defined(SCO) && !defined(remove) && !defined(CONVEX)
 	int
 remove(buf)
-# if defined(linux) || defined(__STDC__) || defined(__NeXT__) || defined(M_UNIX)
+# if defined(linux) || defined(__STDC__) || defined(__NeXT__) || defined(M_UNIX) || defined(__GLIBC__)
 	const
 # endif
 			char *buf;
--- build-tree/vim/src/unix.h	2007-04-05 07:23:08.181501000 +0200
+++ build-tree/vim/src/unix.h	2007-04-05 07:24:18.000000000 +0200
@@ -66,7 +66,7 @@
 #ifdef SCO
 int		chmod __ARGS((const char *, mode_t));
 #endif
-#if !defined(__GNU__) && !defined(linux) && !defined(__NeXT) && !defined(M_UNIX) && !defined(ISC) && !defined(USL) && !defined(SOLARIS)
+#if !defined(__GNU__) && !defined(linux) && !defined(__NeXT) && !defined(M_UNIX) && !defined(ISC) && !defined(USL) && !defined(SOLARIS) && !defined(__GLIBC__)
 int		remove __ARGS((const char *));
 /*
  * If you get an error message on "const" in the lines above, try
@@ -83,14 +83,14 @@
 int		stricmp __ARGS((char *, char *));
 
 /* memmove is not present on all systems, use our own version or bcopy */
-#if !defined(SCO) && !defined(SOLARIS) && !defined(AIX) && !defined(UTS4) && !defined(USL) && !defined(MIPS) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(linux) && !defined(UNISYS) && !defined(__CYGWIN__) && !defined(__bsdi__) && !defined(__GNU__)
+#if !defined(SCO) && !defined(SOLARIS) && !defined(AIX) && !defined(UTS4) && !defined(USL) && !defined(MIPS) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(linux) && !defined(UNISYS) && !defined(__CYGWIN__) && !defined(__bsdi__) && !defined(__GNU__) && !defined(__GLIBC__)
 # ifdef SYSV_UNIX
 #   define MEMMOVE
 void *memmove __ARGS((void *, void *, int));
 # else
 #  define memmove(to, from, len) bcopy(from, to, len)
 #  if !(defined(hpux) && defined(__STDC__) || defined(__bsdi__))
-#   if defined(linux) || defined(__GNU__)
+#   if defined(linux) || defined(__GNU__) || defined(__GLIBC__)
 extern void bcopy __ARGS((const void *, void *, int));
 #   else
 extern void bcopy __ARGS((char *, char *, int));
@@ -104,7 +104,7 @@
 # define strrchr(ptr, c)		rindex((ptr), (c))
 #endif
 
-#if defined(BSD_UNIX) && !defined(__bsdi__) && !defined(linux) && !defined(__GNU__)
+#if defined(BSD_UNIX) && !defined(__bsdi__) && !defined(linux) && !defined(__GNU__) && !defined(__GLIBC__)
 # define memset(ptr, c, size)	bsdmemset((ptr), (c), (size))
 char *bsdmemset __ARGS((char *, int, long));
 #endif
@@ -113,12 +113,12 @@
  * Most unixes don't have these in include files.
  * If you get a "redefined" error, delete the offending line.
  */
-#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(linux) && !defined(__CYGWIN__) && !defined(__bsdi__) && !defined(__GNU__)
+#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(linux) && !defined(__CYGWIN__) && !defined(__bsdi__) && !defined(__GNU__) && !defined(__GLIBC__)
   extern int	ioctl __ARGS((int, int, ...));
 #endif
 extern int	fsync __ARGS((int));
 extern char *getwd __ARGS((char *));
-#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(linux) && !defined(__CYGWIN__) && !defined(__bsdi__) && !defined(__hpux) && !defined(__GNU__)
+#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(linux) && !defined(__CYGWIN__) && !defined(__bsdi__) && !defined(__hpux) && !defined(__GNU__) && !defined(__GLIBC__)
   extern void bzero __ARGS((char *, int));
 #endif
 #if defined(system_that_does_not_have_access_in_an_include_file)

Reply via email to