diff options
Diffstat (limited to 'libgnu/Makefile.am')
| -rw-r--r-- | libgnu/Makefile.am | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/libgnu/Makefile.am b/libgnu/Makefile.am index 37fdb9ca..5af121af 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 +EXTRA_DIST = endian.in.h byteswap.in.h sys_mman.win32.h mman_win32.c CLEANFILES = SUFFIXES = @@ -53,4 +53,19 @@ BUILT_SOURCES += byteswap.h MOSTLYCLEANFILES += byteswap.h endif +if !HAVE_SYS_MMAN_H +if USE_WIN32_MMAN +sys/mman.h: sys_mman.win32.h + $(AM_V_GEN)rm -f $@ && mkdir -p sys && cat $< > $@ +BUILT_SOURCES += sys/mman.h +MOSTLYCLEANFILES += sys/mman.h +endif +endif + include gnulib.am + +if !HAVE_SYS_MMAN_H +if USE_WIN32_MMAN +libgnu_a_SOURCES += mman_win32.c +endif +endif |
