diff mbox

Cleanup #includes in preparation for BZ#16734 fix

Message ID CALoOobNXj=JEMHSXQPLLir33giVZ4qhtVr6OjvmCJmZbt1TKRg@mail.gmail.com
State New
Headers show

Commit Message

Paul Pluzhnikov Feb. 17, 2015, 12:25 a.m. UTC
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

Roland McGrath Feb. 17, 2015, 11:58 p.m. UTC | #1
That's obvious enough to commit even without explicit review.
diff mbox

Patch

diff --git a/libio/libioP.h b/libio/libioP.h
index d8604ca..d1699de 100644
--- a/libio/libioP.h
+++ b/libio/libioP.h
@@ -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>