GNU Binutils with patches for OS216
修訂 | deb9b901992c5b2043430dd178c3b94d8fe97376 (tree) |
---|---|
時間 | 2019-09-23 22:12:54 |
作者 | Nick Alcock <nick.alcock@orac...> |
Commiter | Nick Alcock |
libctf: get rid of a disruptive public include of <sys/param.h>
This hoary old header defines things like MAX that users of libctf might
perfectly reasonably define themselves.
The CTF headers do not need it: move it into libctf/ctf-impl.h instead.
include/
* ctf-api.h (includes): No longer include <sys/param.h>.
libctf/
* ctf-impl.h (includes): Include <sys/param.h> here.
@@ -1,3 +1,7 @@ | ||
1 | +2019-07-13 Nick Alcock <nick.alcock@oracle.com> | |
2 | + | |
3 | + * ctf-api.h (includes): No longer include <sys/param.h>. | |
4 | + | |
1 | 5 | 2019-07-30 Nick Alcock <nick.alcock@oracle.com> |
2 | 6 | |
3 | 7 | * ctf-api.h (ctf_link_add_cu_mapping): New. |
@@ -24,7 +24,6 @@ | ||
24 | 24 | #ifndef _CTF_API_H |
25 | 25 | #define _CTF_API_H |
26 | 26 | |
27 | -#include <sys/param.h> | |
28 | 27 | #include <sys/types.h> |
29 | 28 | #include <ctf.h> |
30 | 29 | #include <zlib.h> |
@@ -1,3 +1,7 @@ | ||
1 | +2019-07-13 Nick Alcock <nick.alcock@oracle.com> | |
2 | + | |
3 | + * ctf-impl.h (includes): Include <sys/param.h> here. | |
4 | + | |
1 | 5 | 2019-07-30 Nick Alcock <nick.alcock@oracle.com> |
2 | 6 | |
3 | 7 | * ctf-open.c (flip_lbls): Eschew for-loop initial declarations. |
@@ -22,6 +22,7 @@ | ||
22 | 22 | |
23 | 23 | #include "config.h" |
24 | 24 | #include <errno.h> |
25 | +#include <sys/param.h> | |
25 | 26 | #include "ctf-decls.h" |
26 | 27 | #include <ctf-api.h> |
27 | 28 | #include <sys/types.h> |