From 9ff667addf39128f43d08d4ec56a6a94ec3bb062 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 4 Oct 2007 22:21:19 +0000 Subject: 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. --- portable/dummy.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 portable/dummy.c (limited to 'portable/dummy.c') 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 +** 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; +} -- cgit v1.2.3