summaryrefslogtreecommitdiff
path: root/portable/dummy.c
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-10-04 22:21:19 +0000
committerRuss Allbery <rra@stanford.edu>2007-10-04 22:21:19 +0000
commit9ff667addf39128f43d08d4ec56a6a94ec3bb062 (patch)
tree41cd39045fb2d37d343608af57aebf844ecd5690 /portable/dummy.c
parent2f9387bdf0e047bbd193532c4fed209acabd0e7a (diff)
Initial import of a C portability framework and utility functions from
remctl so that the wallet client error handling can rest on a firmer foundation.
Diffstat (limited to 'portable/dummy.c')
-rw-r--r--portable/dummy.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/portable/dummy.c b/portable/dummy.c
new file mode 100644
index 0000000..e5a6224
--- /dev/null
+++ b/portable/dummy.c
@@ -0,0 +1,21 @@
+/* $Id$
+**
+** Dummy symbol to prevent an empty library.
+**
+** Written by Russ Allbery <rra@stanford.edu>
+** This work is hereby placed in the public domain by its author.
+**
+** On platforms that already have all of the functions that libportable would
+** supply, Automake builds an empty library and then calls ar with
+** nonsensical arguments. Ensure that libportable always contains at least
+** one symbol.
+*/
+
+/* Prototype to avoid gcc warnings. */
+int portable_dummy(void);
+
+int
+portable_dummy(void)
+{
+ return 42;
+}