aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-11 18:19:11 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-11 18:22:00 +0100
commit43b37b2acc7e8876371741d4901cdc11ad7ecadd (patch)
tree36f657810e5ce24b94496d395fc72a634aeaed8a /src/main.cpp
parent87c378c20c30c9251c3787f6fd5496b72511f344 (diff)
Fix WEXITSTATUS compile error on openbsd (and ubuntu)
I noticed that WEXITSTATUS was failing when compiling sibs on ubuntu. WEXITSTATUS uses address of input which fails if the input is directly passed by return of a function call. Also added error checking if the process was stopped/killed by receiving a signal or if it failed in any other way.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 151e5a5..b1982bd 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -9,6 +9,11 @@
using namespace std;
using namespace sibs;
+// TODO: Fail if multiple versions of the same dependency is used
+// as linking will fail because of multiple definitions of the same thing
+
+// TODO: Detect recursive dependencies and give error.
+
void usage()
{
printf("usage: sibs COMMAND\n\n");