• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂deb9b901992c5b2043430dd178c3b94d8fe97376 (tree)
時間2019-09-23 22:12:54
作者Nick Alcock <nick.alcock@orac...>
CommiterNick Alcock

Log Message

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.

Change Summary

差異

--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
1+2019-07-13 Nick Alcock <nick.alcock@oracle.com>
2+
3+ * ctf-api.h (includes): No longer include <sys/param.h>.
4+
15 2019-07-30 Nick Alcock <nick.alcock@oracle.com>
26
37 * ctf-api.h (ctf_link_add_cu_mapping): New.
--- a/include/ctf-api.h
+++ b/include/ctf-api.h
@@ -24,7 +24,6 @@
2424 #ifndef _CTF_API_H
2525 #define _CTF_API_H
2626
27-#include <sys/param.h>
2827 #include <sys/types.h>
2928 #include <ctf.h>
3029 #include <zlib.h>
--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,3 +1,7 @@
1+2019-07-13 Nick Alcock <nick.alcock@oracle.com>
2+
3+ * ctf-impl.h (includes): Include <sys/param.h> here.
4+
15 2019-07-30 Nick Alcock <nick.alcock@oracle.com>
26
37 * ctf-open.c (flip_lbls): Eschew for-loop initial declarations.
--- a/libctf/ctf-impl.h
+++ b/libctf/ctf-impl.h
@@ -22,6 +22,7 @@
2222
2323 #include "config.h"
2424 #include <errno.h>
25+#include <sys/param.h>
2526 #include "ctf-decls.h"
2627 #include <ctf-api.h>
2728 #include <sys/types.h>