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:
Nick Alcock 2019-07-13 21:45:55 +01:00
parent 5ae6af75b5
commit 7e97445a5a
4 changed files with 9 additions and 1 deletions

View 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>