summaryrefslogtreecommitdiff
path: root/lgl/dummy.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-10-21 10:02:03 +0000
committerSimon Josefsson <simon@josefsson.org>2006-10-21 10:02:03 +0000
commit50989bd691471f912d2e62469d05e5eee3c6c4b7 (patch)
tree390b0c548f72992a3a2f8e20837edd6b1982c882 /lgl/dummy.c
parent88737f5d01172764cbfd26d7a778603bcf61ccda (diff)
downloadgnutls-50989bd691471f912d2e62469d05e5eee3c6c4b7.tar.gz
Add lgl/ for LGPLed gnulib modules (for lib/) and use gl/ for GPL gnulib modules, for use in src/ etc.
Diffstat (limited to 'lgl/dummy.c')
-rw-r--r--lgl/dummy.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/lgl/dummy.c b/lgl/dummy.c
new file mode 100644
index 0000000000..df147e4778
--- /dev/null
+++ b/lgl/dummy.c
@@ -0,0 +1,30 @@
+/* A dummy file, to prevent empty libraries from breaking builds.
+ Copyright (C) 2004 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 2.1, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+ USA. */
+
+/* Some systems, reportedly OpenBSD and Mac OS X, refuse to create
+ libraries without any object files. You might get an error like:
+
+ > ar cru .libs/libgl.a
+ > ar: no archive members specified
+
+ Compiling this file, and adding its object file to the library, will
+ prevent the library from being empty. */
+
+/* This declaration is solely to ensure that after preprocessing
+ this file is never empty. */
+typedef int dummy;