Skip to content

Commit f3a49fe

Browse files
committed
Add a note clarifying where this file cannot be used and why
1 parent 0338681 commit f3a49fe

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

gcc-attributes.h

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,25 @@
1515
* You should have received a copy of the GNU Lesser General Public
1616
* License along with this library; if not, write to the Free Software
1717
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18+
*
19+
* Author: Steve Grubb <[email protected]>
1820
*/
1921

2022
#ifndef AUDIT_GCC_ATTRIBUTES_H
2123
#define AUDIT_GCC_ATTRIBUTES_H
2224

23-
/* These macros originate in sys/cdefs.h but may be missing on some libc
24-
* implementations (e.g. musl). Provide fallbacks when they are undefined.
25+
/*
26+
* These macros originate in sys/cdefs.h when glibc is installed. But the
27+
* definitions may be missing on some libc implementations (e.g. musl).
28+
* The purpose of this header is to provide fallbacks when they are
29+
* undefined.
30+
*
31+
* Note: We do not want to ship this file. Therefore the following headers
32+
* CANNOT include this file because they are the public API for the audit
33+
* system: audit-records.h, audit_logging.h, auparse-defs.h, auparse.h,
34+
* auplugin.h and libaudit.h
2535
*/
36+
2637
#ifndef __has_attribute
2738
# define __has_attribute(x) 0
2839
#endif

0 commit comments

Comments
 (0)