summaryrefslogtreecommitdiffhomepage
path: root/src/perk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/perk.c')
-rw-r--r--src/perk.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/perk.c b/src/perk.c
index 00a44b1..7828784 100644
--- a/src/perk.c
+++ b/src/perk.c
@@ -60,7 +60,7 @@ static int perk_exit(struct pe_driver_ctx * dctx, int nerrors)
return nerrors ? 2 : 0;
}
-static int perk_main(int argc, const char ** argv, const char ** envp)
+int perk_main(int argc, const char ** argv, const char ** envp)
{
int ret;
struct pe_driver_ctx * dctx;
@@ -85,7 +85,11 @@ static int perk_main(int argc, const char ** argv, const char ** envp)
return perk_exit(dctx,ret);
}
+#ifndef PERK_IN_A_BOX
+
int main(int argc, const char ** argv, const char ** envp)
{
return perk_main(argc,argv,envp);
}
+
+#endif