]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
libctf: get rid of a disruptive public include of <sys/param.h>
authorNick Alcock <nick.alcock@oracle.com>
Sat, 13 Jul 2019 20:45:55 +0000 (21:45 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 23 Sep 2019 13:12:54 +0000 (14:12 +0100)
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.

include/ChangeLog
include/ctf-api.h
libctf/ChangeLog
libctf/ctf-impl.h

index ce7c17377a09bc9a204a8f13771fed45b0084524..b53956f3486451fde16d2d81931ad16bf9ce46f7 100644 (file)
@@ -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.
index 4ac5fea8bc697420674d6cffca6d7d92a5d8fcf7..f50bb0a01992353d80f5b3b269f3b1c82f7288df 100644 (file)
@@ -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>
index 3849f6a8d97c7110c33ab009627ab118330fcf5e..12af4d78bcb10758e060698354016ec9ce596178 100644 (file)
@@ -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.
index c08400c45d481fd9c6861d83a6c084b5f93a6a6b..ab8f4c18b334f49a7220204dc64119889fb1382c 100644 (file)
@@ -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>