components/vim/patches/si_id.patch
author Jay Cotton <Jay.Cotton@Oracle.com>
Mon, 03 Apr 2017 15:13:06 -0700
changeset 7827 4de3a5b9c0a3
parent 7049 e8d705cba87d
permissions -rw-r--r--
25789688 Pulseaudio needs to use the oss solaris audio driver.

A change to sys/siginfo.h added a #define for si_id that breaks the vim
build.  This is a nasty hack to undo those effects, and should not go
upstream.  The right fix may be to get vim to stop using the "si_" prefix,
since that appears to be "reserved for the implementation", per the
OpenGroup specs.

--- a/src/syntax.c	Sat Aug 10 06:00:24 2013
+++ b/src/syntax.c	Wed Jan  6 10:34:12 2016
@@ -283,6 +283,7 @@
  * When si_m_endpos.lnum is 0, the items other than si_idx are unknown.
  * (The end positions have the column number of the next char)
  */
+#undef si_id
 typedef struct state_item
 {
     int		si_idx;			/* index of syntax pattern or