summaryrefslogtreecommitdiff
path: root/src/tool_main.c
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2013-05-03 23:03:58 +0200
committerKamil Dudka <kdudka@redhat.com>2013-05-06 15:03:12 +0200
commit683f2b832388d08999620ee45cb619a7afd42aaf (patch)
treeaa9632633cdcbaa972c799dd5e2ea7ffbc745987 /src/tool_main.c
parent2de20dd9a1c6ad4d576c60ab704c30abfc826b1a (diff)
downloadcurl-683f2b832388d08999620ee45cb619a7afd42aaf.tar.gz
src/Makefile.am: build static lib for unit tests if enabled
Diffstat (limited to 'src/tool_main.c')
-rw-r--r--src/tool_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tool_main.c b/src/tool_main.c
index 5e1010aa8..8f2fbb77b 100644
--- a/src/tool_main.c
+++ b/src/tool_main.c
@@ -55,6 +55,9 @@
int vms_show = 0;
#endif
+/* if we build a static library for unit tests, there is no main() function */
+#ifndef UNITTESTS
+
/*
* Ensure that file descriptors 0, 1 and 2 (stdin, stdout, stderr) are
* open before starting to run. Otherwise, the first three network
@@ -118,3 +121,4 @@ int main(int argc, char *argv[])
#endif
}
+#endif /* ndef UNITTESTS */