diff options
Diffstat (limited to 'portable/dummy.c')
-rw-r--r-- | portable/dummy.c | 21 |
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; +} |