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]

Re: Sharing of bits/fcntl.h on Linux (SPARC, x86)


> This is not going to work directly since struct flock needs the include 
> of <sys/types.h> for __off64_t.

You could put #include <bits/types.h> right before the 'struct flock'
definition like io/bits/fcntl.h does.

But actually, what we should do is move the <bits/types.h> include in
io/fcntl.h up to the top.  (It doesn't need to be conditional, since it's a
name-space-clean internal header anyway.)  Now it implicitly assumes that
<bits/fcntl.h> causes __mode_t, __off_t, and __pid_t to be defined, which
it shouldn't do.


Thanks,
Roland


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