summaryrefslogtreecommitdiffstats
path: root/sayhello.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-04-19 11:59:45 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-19 11:59:45 +0200
commit478a4c0a89224f3b8b0641fd5480b81090259f15 (patch)
tree000837b2f08174ee4d070cb707e39b3a100a1918 /sayhello.c
parent096fcd1d98841d931799958bdba6601c788f1ab1 (diff)
downloadsayhello-478a4c0a89224f3b8b0641fd5480b81090259f15.tar.bz2
sayhello-478a4c0a89224f3b8b0641fd5480b81090259f15.tar.xz
allow build without pluginsHEADmaster
Diffstat (limited to 'sayhello.c')
-rw-r--r--sayhello.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sayhello.c b/sayhello.c
index 1f132df..b107f33 100644
--- a/sayhello.c
+++ b/sayhello.c
@@ -4,6 +4,9 @@
int main(int argc, const char *argv[]) {
int i;
+#ifdef DISABLE_PLUGINS
+ sayhello();
+#else
if (argc < 2)
errx(1, "usage: sayhello PLUGIN...");
@@ -24,6 +27,7 @@ int main(int argc, const char *argv[]) {
dlclose(handle);
}
+#endif
return 0;
}