This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH roland/mman-linux] Move bits/mman-linux.h out of sysdeps/unix/sysv/linux/.


I'm working on a non-Linux port (NaCl) that uses the Linux bits for various
things, including the bits/mman.h bits.  It reduces duplication if I can
just use bits/mman-linux.h, but as things stand that file is only available
in Linux configurations.

It's a bit nonobvious that sysdeps/unix/sysv/linux/Makefile (and soon
sysdeps/nacl/Makefile) has to add bits/mman-linux.h to sysdep_headers
though the header itself is outside of sysdeps/unix/sysv/linux/.  But I
think that wrinkle is preferable to winding up with manual duplication.
If people think this is a bad idea, I can always do something more hokey
in the NaCl port to copy the source file during the build or something.

Opinions?


Thanks,
Roland


2014-03-14  Roland McGrath  <roland@hack.frob.com>

	* sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
	* bits/mman-linux.h: ... here.

diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/bits/mman-linux.h
similarity index 100%
rename from sysdeps/unix/sysv/linux/bits/mman-linux.h
rename to bits/mman-linux.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]