diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2019-07-13 21:45:55 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2019-09-23 14:12:54 +0100 |
commit | deb9b901992c5b2043430dd178c3b94d8fe97376 (patch) | |
tree | aab157bc745c47ba96bdfd331584a20032966d51 /libctf/ctf-impl.h | |
parent | 3c50a95108d487979713c0720aa6904c00feeaa5 (diff) | |
download | binutils-deb9b901992c5b2043430dd178c3b94d8fe97376.zip binutils-deb9b901992c5b2043430dd178c3b94d8fe97376.tar.gz binutils-deb9b901992c5b2043430dd178c3b94d8fe97376.tar.bz2 |
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.
Diffstat (limited to 'libctf/ctf-impl.h')
-rw-r--r-- | libctf/ctf-impl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h index c08400c..ab8f4c1 100644 --- a/libctf/ctf-impl.h +++ b/libctf/ctf-impl.h @@ -22,6 +22,7 @@ #include "config.h" #include <errno.h> +#include <sys/param.h> #include "ctf-decls.h" #include <ctf-api.h> #include <sys/types.h> |