aboutsummaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2019-07-13 21:45:55 +0100
committerNick Alcock <nick.alcock@oracle.com>2019-10-03 17:04:55 +0100
commit7e97445a5a4797ba580a58c99d9e16836aa41188 (patch)
tree36f82e821ef85e938e7bdb6a74800dfff4c97923 /libctf
parent5ae6af75b50bb4137d286a14e2fd1e74cfa089f4 (diff)
downloadfsf-binutils-gdb-7e97445a5a4797ba580a58c99d9e16836aa41188.zip
fsf-binutils-gdb-7e97445a5a4797ba580a58c99d9e16836aa41188.tar.gz
fsf-binutils-gdb-7e97445a5a4797ba580a58c99d9e16836aa41188.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')
-rw-r--r--libctf/ChangeLog4
-rw-r--r--libctf/ctf-impl.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog
index 83b3167..9637cf3 100644
--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,3 +1,7 @@
+2019-07-13 Nick Alcock <nick.alcock@oracle.com>
+
+ * ctf-impl.h (includes): Include <sys/param.h> here.
+
2019-07-30 Nick Alcock <nick.alcock@oracle.com>
* ctf-open.c (flip_lbls): Eschew for-loop initial declarations.
diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h
index 554b187..211099e 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>