summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2014-01-06 02:59:39 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2014-01-06 02:59:39 +0100
commite9ea3e62501814c4224237f6242fed83a1c886cc (patch)
treec8c93ce878ff5ba4ce34ffee795489956dc654de /lib
parentf157bd98c51ce91b009245b762baf45cd2763faa (diff)
downloadmdk-e9ea3e62501814c4224237f6242fed83a1c886cc.tar.gz
mdk-e9ea3e62501814c4224237f6242fed83a1c886cc.tar.bz2
Fix for #41097 (compilation in darwin)
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am14
-rw-r--r--lib/darwin.c27
2 files changed, 36 insertions, 5 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index db3f35f..c40d7da 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -1,11 +1,11 @@
## Process this file with automake to produce Makefile.in
-# Copyright (C) 2001 Free Software Foundation, Inc.
-#
+# Copyright (C) 2001, 2014 Free Software Foundation, Inc.
+#
# This file is free software; as a special exception the author gives
-# unlimited permission to copy and/or distribute it, with or without
+# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
-#
+#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@@ -13,5 +13,9 @@
EXTRA_DIST = getopt_long.c getopt.h
noinst_LIBRARIES = libreplace.a
+if DARWIN_SYSTEM
+libreplace_a_SOURCES = dummy.c
+else
libreplace_a_SOURCES =
-libreplace_a_LIBADD = @LIBOBJS@ \ No newline at end of file
+endif
+libreplace_a_LIBADD = @LIBOBJS@
diff --git a/lib/darwin.c b/lib/darwin.c
new file mode 100644
index 0000000..b3e8fa3
--- /dev/null
+++ b/lib/darwin.c
@@ -0,0 +1,27 @@
+/* -*-c-*- -------------- darwin.c:
+ * Dummy functions for darwin compatibility
+ * ------------------------------------------------------------------
+ * Copyright (C) 2014 Free Software Foundation, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU 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.
+ *
+ */
+
+int
+useless_function_to_ensure_darwin_compiles (void)
+{
+ return 0;
+}