File: fix_compilation

package info (click to toggle)
soapdenovo2 242%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,636 kB
  • sloc: ansic: 43,612; cpp: 6,528; makefile: 208; perl: 78; sh: 46
file content (40 lines) | stat: -rw-r--r-- 1,255 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Subject: Fails to compile, usleep unknown
Description: code from upstream fails to compile.
 An include is missing.
 Mail has been sent upstream and question posted to
 their google group but got no answer.
Forwarded: no
Author: Olivier Sallou <osallou@debian.org>
Last-Updated: 2013-08-05
--- a/sparsePregraph/pregraph_sparse.cpp
+++ b/sparsePregraph/pregraph_sparse.cpp
@@ -34,6 +34,7 @@
 #include "seq_util.h"
 #include "convert_soapdenovo.h"
 
+#include <unistd.h>
 
 static int LOAD_GRAPH = 0, BUILD_DBG = 1, BUILD_EDGES = 1, BUILD_PREARCS = 1;
 //static    int run_mode=0;
--- a/sparsePregraph/inc/multi_threads.h
+++ b/sparsePregraph/inc/multi_threads.h
@@ -24,6 +24,8 @@
 #define _MULTI_THREADS_H
 #include "stdinc.h"
 
+#include <unistd.h>
+
 typedef struct parameter
 {
   unsigned char threadID;
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@
 
 SUBDIRS = sparsePregraph standardPregraph fusion
 PROG=       SOAPdenovo-63mer SOAPdenovo-127mer SOAPdenovo-fusion
-INCLUDES=   -I./sparsePregraph/inc -I./standardPregraph/inc
+INCLUDES=   -I./sparsePregraph/inc -I./standardPregraph/inc -I/usr/include/x86_64-linux-gnu
 
 LIBPATH=    -L./sparsePregraph/inc -L./standardPregraph/inc -L/lib64 -L/usr/lib64
 LIBS=       -pthread -lz -lm