diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-03-28 14:08:35 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-05-03 14:59:05 +0000 |
commit | fdc98439e9c4a662c8c3248a823dca0cd486f6fc (patch) | |
tree | 25e91e665f3704fa43f1508cc6b704642c1c03ef /libgnu | |
parent | 76a4fb05b6651e53086c14a9de09b11069dc89d8 (diff) |
Add a stdio_ext.h that defines __fsetlocking away
Change-Id: I240348b865faab638adad078e44d9fcdf3ca02c9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'libgnu')
-rw-r--r-- | libgnu/Makefile.am | 10 | ||||
-rw-r--r-- | libgnu/stdio_ext.in.h | 35 |
2 files changed, 44 insertions, 1 deletions
diff --git a/libgnu/Makefile.am b/libgnu/Makefile.am index 25a811bc..301744c6 100644 --- a/libgnu/Makefile.am +++ b/libgnu/Makefile.am @@ -35,7 +35,8 @@ noinst_LIBRARIES = MOSTLYCLEANFILES = MOSTLYCLEANDIRS = BUILT_SOURCES = -EXTRA_DIST = endian.in.h byteswap.in.h sys_mman.win32.h mman_win32.c sysconf_win32.c ar.in.h features.in.h +EXTRA_DIST = endian.in.h byteswap.in.h sys_mman.win32.h mman_win32.c sysconf_win32.c ar.in.h features.in.h \ + stdio_ext.in.h CLEANFILES = SUFFIXES = @@ -76,6 +77,13 @@ MOSTLYCLEANFILES += sys/mman.h endif endif +if !HAVE_STDIO_EXT_H +stdio_ext.h: stdio_ext.in.h + $(AM_V_GEN)rm -f $@ && cat $< > $@ +BUILT_SOURCES += stdio_ext.h +MOSTLYCLEANFILES += stdio_ext.h +endif + include gnulib.am if !HAVE_SYS_MMAN_H diff --git a/libgnu/stdio_ext.in.h b/libgnu/stdio_ext.in.h new file mode 100644 index 00000000..62565f41 --- /dev/null +++ b/libgnu/stdio_ext.in.h @@ -0,0 +1,35 @@ +/* This file defines __fsetlocking to noop + Copyright (C) 2017 The Qt Company Ltd + This file is part of elfutils. + + This file is free software; you can redistribute it and/or modify + it under the terms of either + + * the GNU Lesser General Public License as published by the Free + Software Foundation; either version 3 of the License, or (at + your option) any later version + + or + + * the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at + your option) any later version + + or both in parallel, as here. + + elfutils 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 copies of the GNU General Public License and + the GNU Lesser General Public License along with this program. If + not, see <http://www.gnu.org/licenses/>. */ + +#ifndef _STDIO_EXT_H +#define _STDIO_EXT_H 1 + +#define __fsetlocking(stream, type) (void)0 + +#endif /* stdio_ext.h */ + |