Blame patches/vim-9.0.0828_pre.local.patch

c745bc
diff -ru vim-8.2.4230.orig/src/auto/configure vim-8.2.4230/src/auto/configure
c745bc
--- vim-8.2.4230.orig/src/auto/configure	2022-01-27 16:04:22.000000000 +0100
c745bc
+++ vim-8.2.4230/src/auto/configure	2022-01-27 17:15:07.217234738 +0100
c745bc
@@ -3772,7 +3772,7 @@
c745bc
 fi
c745bc
 
c745bc
 ac_ext=c
c745bc
-ac_cpp='$CPP $CPPFLAGS'
c745bc
+ac_cpp='$CPP $CFLAGS $CPPFLAGS'
c745bc
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
c745bc
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
c745bc
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
c745bc
@@ -8343,6 +8343,7 @@
c745bc
 
c745bc
 # Standard set of common directories for X headers.
c745bc
 # Check X11 before X11Rn because it is often a symlink to the current release.
c745bc
+if test -z "$ac_x_header_dirs"; then
c745bc
 ac_x_header_dirs='
c745bc
 /usr/X11/include
c745bc
 /usr/X11R7/include
c745bc
@@ -8381,6 +8382,7 @@
c745bc
 
c745bc
 /usr/openwin/include
c745bc
 /usr/openwin/share/include'
c745bc
+fi
c745bc
 
c745bc
 if test "$ac_x_includes" = no; then
c745bc
   # Guess where to find include files, by looking for Xlib.h.
c745bc
diff -ru vim-8.2.4230.orig/src/Makefile vim-8.2.4230/src/Makefile
c745bc
--- vim-8.2.4230.orig/src/Makefile	2022-01-27 16:04:22.000000000 +0100
c745bc
+++ vim-8.2.4230/src/Makefile	2022-01-27 17:13:59.313233849 +0100
c745bc
@@ -3093,7 +3093,7 @@
c745bc
 	    $(PERLLIB)/ExtUtils/typemap if_perl.xs >> $@
c745bc
 
c745bc
 auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
c745bc
-	CC="$(CC) $(OSDEF_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh
c745bc
+	CC="$(CC) $(OSDEF_CFLAGS) -I$(PKG_PREFIX)/include" srcdir=$(srcdir) sh $(srcdir)/osdef.sh
c745bc
 
c745bc
 auto/os_haiku.rdef: os_haiku.rdef.in
c745bc
 	@echo creating $@