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.
This commit is contained in:
parent
5ae6af75b5
commit
7e97445a5a
@ -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.
|
||||
|
@ -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>
|
||||
|
@ -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.
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user