From e9ea3e62501814c4224237f6242fed83a1c886cc Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Mon, 6 Jan 2014 02:59:39 +0100 Subject: Fix for #41097 (compilation in darwin) --- lib/Makefile.am | 14 +++++++++----- lib/darwin.c | 27 +++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 lib/darwin.c (limited to 'lib') 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; +} -- cgit v1.2.3