diff options
| author | Ulf Hermann <[email protected]> | 2017-03-27 15:40:36 +0200 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2017-05-03 14:19:10 +0000 |
| commit | 76a4fb05b6651e53086c14a9de09b11069dc89d8 (patch) | |
| tree | 824b29056868c8ff1a2d91d574abb2eccfbef88f /libgnu | |
| parent | 8472c0c3f4fde2a62cb3dfe75b10ee2e6dcf8991 (diff) | |
Add fake features.h for win32
gnulib #defines all the types we need from it, so it is empty. We still
need it because other files #include it.
Change-Id: I0bb4ee71bcb3e983b41f640c12ef5b9f09b6b03c
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'libgnu')
| -rw-r--r-- | libgnu/Makefile.am | 9 | ||||
| -rw-r--r-- | libgnu/features.in.h | 35 |
2 files changed, 43 insertions, 1 deletions
diff --git a/libgnu/Makefile.am b/libgnu/Makefile.am index d7af59a1..25a811bc 100644 --- a/libgnu/Makefile.am +++ b/libgnu/Makefile.am @@ -35,7 +35,7 @@ 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 +EXTRA_DIST = endian.in.h byteswap.in.h sys_mman.win32.h mman_win32.c sysconf_win32.c ar.in.h features.in.h CLEANFILES = SUFFIXES = @@ -60,6 +60,13 @@ BUILT_SOURCES += ar.h MOSTLYCLEANFILES += ar.h endif +if !HAVE_FEATURES_H +features.h: features.in.h + $(AM_V_GEN)rm -f $@ && cat $< > $@ +BUILT_SOURCES += features.h +MOSTLYCLEANFILES += features.h +endif + if !HAVE_SYS_MMAN_H if USE_WIN32_MMAN sys/mman.h: sys_mman.win32.h diff --git a/libgnu/features.in.h b/libgnu/features.in.h new file mode 100644 index 00000000..41f94a30 --- /dev/null +++ b/libgnu/features.in.h @@ -0,0 +1,35 @@ +/* This file defines uid_t, gid_t, mode_t, pid_t + 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 _FEATURES_H +#define _FEATURES_H 1 + +// Don't define the actual types here. +// Gnulib adds #define statements for them to config.h + +#endif /* features.h */ |
