aboutsummaryrefslogtreecommitdiff
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 /include
parentlibctf: eschew C99 for loop initial declarations (diff)
downloadbinutils-gdb-7e97445a5a4797ba580a58c99d9e16836aa41188.tar.gz
binutils-gdb-7e97445a5a4797ba580a58c99d9e16836aa41188.tar.bz2
binutils-gdb-7e97445a5a4797ba580a58c99d9e16836aa41188.zip
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 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/ctf-api.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index ce7c17377a0..b53956f3486 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2019-07-13 Nick Alcock <nick.alcock@oracle.com>
+
+ * ctf-api.h (includes): No longer include <sys/param.h>.
+
2019-07-30 Nick Alcock <nick.alcock@oracle.com>
* ctf-api.h (ctf_link_add_cu_mapping): New.
diff --git a/include/ctf-api.h b/include/ctf-api.h
index 4ac5fea8bc6..f50bb0a0199 100644
--- a/include/ctf-api.h
+++ b/include/ctf-api.h
@@ -24,7 +24,6 @@
#ifndef _CTF_API_H
#define _CTF_API_H
-#include <sys/param.h>
#include <sys/types.h>
#include <ctf.h>
#include <zlib.h>