]> git.donarmstrong.com Git - samtools.git/blobdiff - bam_index.c
* samtools-0.1.5-7 (r403)
[samtools.git] / bam_index.c
index 725d053b7f44a667a178aff67473e0c6376e1444..5126f00c8d8da0c41e0ba2179ca23cc8d436e53f 100644 (file)
@@ -354,6 +354,7 @@ bam_index_t *bam_index_load_local(const char *_fn)
        } else return 0;
 }
 
+#ifdef _USE_KNETFILE
 static void download_from_remote(const char *url)
 {
        const int buf_size = 1 * 1024 * 1024;
@@ -384,6 +385,12 @@ static void download_from_remote(const char *url)
        fclose(fp);
        knet_close(fp_remote);
 }
+#else
+static void download_from_remote(const char *url)
+{
+       return;
+}
+#endif
 
 bam_index_t *bam_index_load(const char *fn)
 {