This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH roland/mman-linux] Move bits/mman-linux.h out of sysdeps/unix/sysv/linux/.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Fri, 14 Mar 2014 13:03:09 -0700 (PDT)
- Subject: [PATCH roland/mman-linux] Move bits/mman-linux.h out of sysdeps/unix/sysv/linux/.
- Authentication-results: sourceware.org; auth=none
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