Cleanup #includes in preparation for BZ#16734 fix
Commit Message
Greetings,
Following up on Joseph's suggestion of fixing the bugs before
committing the s/ALLOC_BUF/malloc/ patch, I tried building glibc with
the following (not intended to commit):
# include <fcntl.h>
@@ -737,7 +737,7 @@ extern _IO_off64_t _IO_seekpos_unlocked (_IO_FILE
*, _IO_off64_t, int)
#endif /* _G_HAVE_MMAP */
-#if _G_HAVE_MMAP
+#if _G_HAVE_MMAP && 0
# ifdef _LIBC
/* When using this code in the GNU libc we must not pollute the name space. */
That failed to build, due to missing #includes.
Attached trivial patch fixes that.
Thanks,
2015-02-16 Paul Pluzhnikov <ppluzhnikov@google.com>
* libio/fileops.c: Add missing sys/mman.h
* libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
Comments
That's obvious enough to commit even without explicit review.
@@ -719,7 +719,7 @@ extern _IO_off64_t _IO_seekpos_unlocked (_IO_FILE
*, _IO_off64_t, int)
# endif
#endif
-#if _G_HAVE_MMAP
+#if _G_HAVE_MMAP && 0
# include <unistd.h>