X-Git-Url: https://git.sven.stormbind.net/?p=sven%2Fjattach.git;a=blobdiff_plain;f=src%2Fposix%2Fjattach.c;fp=src%2Fposix%2Fjattach.c;h=53d9dfba127d352752eef713affd7710af7db30e;hp=804d13daee52beff86aef0e1dae473c8c611620a;hb=98ce3928a99273b631c525a81df022e6f8ec46a7;hpb=91eb05a0b9cfabc7670a4f0f1e2b8083307a2fca diff --git a/src/posix/jattach.c b/src/posix/jattach.c index 804d13d..53d9dfb 100644 --- a/src/posix/jattach.c +++ b/src/posix/jattach.c @@ -64,6 +64,8 @@ int jattach(int pid, int argc, char** argv) { } } +#ifdef JATTACH_VERSION + int main(int argc, char** argv) { if (argc < 3) { printf("jattach " JATTACH_VERSION " built on " __DATE__ "\n" @@ -86,3 +88,5 @@ int main(int argc, char** argv) { return jattach(pid, argc - 2, argv + 2); } + +#endif // JATTACH_VERSION