public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] libctf: get rid of a disruptive public include of <sys/param.h>
@ 2019-10-03 16:32 Jose E.Marchesi
  0 siblings, 0 replies; only message in thread
From: Jose E.Marchesi @ 2019-10-03 16:32 UTC (permalink / raw)
  To: bfd-cvs, gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7e97445a5a4797ba580a58c99d9e16836aa41188

commit 7e97445a5a4797ba580a58c99d9e16836aa41188
Author: Nick Alcock <nick.alcock@oracle.com>
Date:   Sat Jul 13 21:45:55 2019 +0100

    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.

Diff:
---
 include/ChangeLog | 4 ++++
 include/ctf-api.h | 1 -
 libctf/ChangeLog  | 4 ++++
 libctf/ctf-impl.h | 1 +
 4 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/include/ChangeLog b/include/ChangeLog
index ce7c173..b53956f 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 4ac5fea..f50bb0a 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>
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>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-03 16:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-03 16:32 [binutils-gdb] libctf: get rid of a disruptive public include of <sys/param.h> Jose E.Marchesi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).