aboutsummaryrefslogtreecommitdiff
path: root/biology/sra-tools/files/patch-tools_external_driver-tool_sratools.cpp
blob: bea51c07e42e653ba486db66890d3df038649669 (plain) (blame)
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
--- tools/external/driver-tool/sratools.cpp.orig	2023-07-10 16:23:35 UTC
+++ tools/external/driver-tool/sratools.cpp
@@ -420,6 +420,7 @@ static int main(CommandLine const &argv)
     enableLogging(argv.toolName.c_str());
 #endif
     LOG(7) << "executable path: " << (std::string)argv.fullPathToExe << std::endl;
+    // std::cerr << "executable path: " << (std::string)argv.fullPathToExe << std::endl;
 
     config = new Config();
     struct Defer { ~Defer() { delete config; config = nullptr; } } freeConfig;
@@ -576,6 +577,14 @@ static int main(CommandLine const &argv)
 }
 
 } // namespace sratools
+
+#if BSD
+int main(int argc, char *argv[], char *envp[])
+{
+    auto const invocation = CommandLine(argc, argv, envp, nullptr);
+    return sratools::main(invocation);
+}
+#endif
 
 #if MAC
 int main(int argc, char *argv[], char *envp[], char *apple[])