Description: make __ks_insertsort static inline to avoid undefined symbol
 ksort.h declares __ks_insertsort_##name with plain "inline" (C99 inline
 definition), which does not provide an external definition.  When the
 extension is compiled without optimization the call to
 __ks_insertsort_offt from ks_introsort_offt/ks_combsort_offt is not
 inlined, leaving an unresolved symbol in pypairix.so and breaking
 import (undefined symbol: __ks_insertsort_offt).  Marking the function
 static inline provides a local copy in each translation unit.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: no
Last-Update: 2026-09-05

--- python-pairix-0.3.8.orig/src/ksort.h
+++ python-pairix-0.3.8/src/ksort.h
@@ -141,7 +141,7 @@ typedef struct {
 			tmp = *l; *l = l[i]; l[i] = tmp; ks_heapadjust_##name(0, i, l); \
 		}																\
 	}																	\
-	inline void __ks_insertsort_##name(type_t *s, type_t *t)			\
+	static inline void __ks_insertsort_##name(type_t *s, type_t *t)		\
 	{																	\
 		type_t *i, *j, swap_tmp;										\
 		for (i = s + 1; i < t; ++i)										\
