diff --git a/htslib/ksort.h b/htslib/ksort.h index ad19fc47a..fe2933bd5 100644 --- a/htslib/ksort.h +++ b/htslib/ksort.h @@ -64,6 +64,7 @@ #include #include +#include "hts.h" #ifndef klib_unused #if (defined __clang__ && __clang_major__ >= 3) || (defined __GNUC__ && __GNUC__ >= 3) @@ -81,6 +82,7 @@ extern "C" { // problems on Windows. Don't include htslib/hts_os.h for this as it // may not get on with older attempts to fix this in code that includes // this file. +HTSLIB_EXPORT extern double hts_drand48(void); typedef struct { diff --git a/htslib_vars.mk b/htslib_vars.mk index 1f4c0905a..2a7b29450 100644 --- a/htslib_vars.mk +++ b/htslib_vars.mk @@ -42,7 +42,7 @@ htslib_khash_str2int_h = $(HTSPREFIX)htslib/khash_str2int.h $(htslib_khash_h) htslib_klist_h = $(HTSPREFIX)htslib/klist.h htslib_kroundup_h = $(HTSPREFIX)htslib/kroundup.h htslib_kseq_h = $(HTSPREFIX)htslib/kseq.h -htslib_ksort_h = $(HTSPREFIX)htslib/ksort.h +htslib_ksort_h = $(HTSPREFIX)htslib/ksort.h $(htslib_hts_h) htslib_kstring_h = $(HTSPREFIX)htslib/kstring.h $(htslib_hts_defs_h) $(htslib_kroundup_h) htslib_regidx_h = $(HTSPREFIX)htslib/regidx.h $(htslib_hts_h) htslib_sam_h = $(HTSPREFIX)htslib/sam.h $(htslib_hts_h) $(htslib_hts_endian_h)