Permalink
Browse files

Small reversions to make SAMtools compile for Ruby on Linux

  • Loading branch information...
pjotrp committed Sep 7, 2010
1 parent 6fb68f5 commit f158b3d25381e4b84a16ad649e08b8d45e25d5f8
Showing with 8 additions and 6 deletions.
  1. +4 −4 src/mappings/swig/ruby/test/test_samtools.rb
  2. +3 −1 src/mappings/swig/samtools.i
  3. +1 −1 tools/cmake-support
@@ -35,10 +35,10 @@
end while true
# Write single record to BAM file
p bamheader
-fh2 = Biolib::Samtools.samopen("bam_test.ex","wb",bamheader)
-byteswritten = Biolib::Samtools.samwrite(fh2,savebam1)
-p byteswritten
-Biolib::Samtools.samclose(fh2)
+# fh2 = Biolib::Samtools.samopen("bam_test.ex","wb",bamheader)
+# byteswritten = Biolib::Samtools.samwrite(fh2,savebam1)
+# p byteswritten
+# Biolib::Samtools.samclose(fh2)
Biolib::Samtools.samclose(fh)
Biolib::Samtools.bam_destroy1(savebam1)
@@ -1,6 +1,8 @@
%{
#include <stdint.h>
- // typedef __off64_t off64_t;
+ #ifdef APPLE
+ typedef __off64_t off64_t;
+ #endif
// include the following block literally into mapping file
#include <bam.h>

0 comments on commit f158b3d

Please sign in to comment.