tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: -D_NETBSD_SOURCE makes headers uncompilable



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 22.01.2016 20:00, Christos Zoulas wrote:
> Hello,
> 
> A few of the traditional BSD origin headers, use u_{char,int,long}
> which are not defined in <sys/types.h> if _NETBSD_SOURCE is
> defined. There are four choices:
> 
> 1. Leave things alone; it's been broken forever and seems harmless.
> Autoconf bitches. 2. Fix all the headers to use the full types;
> intrusive will introduce diffs with other Unixes and upstreams.

I like this version.

Where needed with a combination with <sys/utypes.h>. I think it could
have more verbose name, like <sys/compat_types.h> or <sys/legacy_types.h
>.

> 3. Provide local definitions of the needed types on each header.
> Messy, error prone. 4. Put the definition of those types in a
> separate header (<sys/utypes.h>) and include this header from other
> headers that require it. This is what I've chosen to implement in
> this patch and I'd like to commit. 5. ???
> 
> Comments?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWoqRgAAoJEEuzCOmwLnZscYYQAKw6uqC8ESo1wpN4FaRg6EQh
DNnHFXGIzWL1Jo7mu0By7+FBT0RDA3I0wBE6KSItwoNFVoMhucuOoLlqnxR4pePk
zxTbhpUEMJsNGIYxNnz4qLxRudX6ftaE0tAj0KSqvP960/S31D838ZxyQ1vCI731
D8rRKqer5oFxvEY0100V4tRbWiKwothZ+aR82P9Tk+wYCNJgExp2ui56q/1UKj0B
zY2Q7wiAEEa0o0to+zbNZejNhCRjtEAomcduPpEwKbLy1k1ixMZzOrxEjj/PydDZ
epLjPaLS2ltFQuPUyhm9oiniKk+Wtl8vY/ppN16YoRc6ptW5+NUYy28rwM6ezRhl
ebIIbcw9mbzL+/rBSXLpAUdh5bym6smtqh+t+Pat1y4hRrRFvnBvglkX1qT4J2R6
Ut+8GfwaeMfHnb1IPfw8+OFMzJFAOKyC9PuQMb5fsbatVIq3E91K0ievZ3m1CMF2
ohv4ECZWW8tpf7It3tvqURW6FC4zRS1OW5d7RVt8g7zyBTf5PS/ENSQOIGvaA9Ey
by1TJwTWX06+JHXJzst50YOrK2XUV3AvfH7/UJrRB1I82xlMvuFi8Mka1BA5FxD0
7j4V+nuAT+b3wBGpmedtYh3WwLZ9zLaPP+Tiz60VUglEp0+PdboBumAedT8ejPTV
fb0moB0ZBCmNJZBQKTwX
=st/7
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index