summaryrefslogtreecommitdiff
blob: ef04f7204958e5589ec8c51e5e0b40556ae51ee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
--- a/audisp/audispd.c
+++ b/audisp/audispd.c
@@ -21,6 +21,7 @@
  */
 
 #include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <stdlib.h>
--- a/audisp/plugins/prelude/audisp-prelude.c
+++ b/audisp/plugins/prelude/audisp-prelude.c
@@ -21,6 +21,8 @@
  *
  */
 
+#include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <signal.h>
--- a/audisp/plugins/remote/audisp-remote.c
+++ b/audisp/plugins/remote/audisp-remote.c
@@ -22,6 +22,7 @@
  */
 
 #include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <signal.h>
 #include <syslog.h>
--- a/configure.ac
+++ b/configure.ac
@@ -216,6 +216,9 @@ AC_ARG_ENABLE(zos-remote,
 AM_CONDITIONAL(ENABLE_ZOS_REMOTE, test "x$enable_zos_remote" != "xno")
 AC_MSG_RESULT($enable_zos_remote)
 
+AC_CHECK_HEADER([asm/ptrace.h], [AC_DEFINE([HAVE_ASM_PTRACE_H],[],[Define to 1 if you have asm/ptrace.h])], [])
+AC_CHECK_HEADER([linux/ptrace.h], [AC_DEFINE([HAVE_LINUX_PTRACE_H],[],[Define to 1 if you have linux/ptrace.h])], [])
+
 #gssapi
 AC_ARG_ENABLE(gssapi_krb5,
 	[AS_HELP_STRING([--enable-gssapi-krb5],[Enable GSSAPI Kerberos 5 support @<:@default=no@:>@])],
--- a/contrib/plugin/audisp-example.c
+++ b/contrib/plugin/audisp-example.c
@@ -37,6 +37,8 @@
  */
 
 #define _GNU_SOURCE
+#include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <signal.h>
 #include <string.h>
--- a/contrib/skeleton.c
+++ b/contrib/skeleton.c
@@ -13,6 +13,8 @@
  * gcc skeleton.c -o skeleton -laudit
  */
 
+#include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/uio.h>
--- /dev/null
+++ b/lib/fixup.h
@@ -0,0 +1,17 @@
+#ifndef _AUDIT_IA64_FIXUP_H_
+#define _AUDIT_IA64_FIXUP_H_
+
+#ifdef __ia64__ /* what a pos */
+# include <linux/types.h>
+# define _ASM_IA64_FPU_H
+#endif
+#include <signal.h>
+/*
+#ifdef HAVE_ASM_PTRACE_H
+# include <asm/ptrace.h>
+#endif
+#ifdef HAVE_LINUX_PTRACE_H
+# include <linux/ptrace.h>
+#endif
+*/
+#endif
--- a/src/auditctl.c
+++ b/src/auditctl.c
@@ -23,6 +23,7 @@
  */
 
 #include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdbool.h>
--- a/src/auditd-config.c
+++ b/src/auditd-config.c
@@ -22,6 +22,7 @@
  */
 
 #include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/stat.h>
--- a/src/auditd-dispatch.c
+++ b/src/auditd-dispatch.c
@@ -22,6 +22,7 @@
  */
 
 #include "config.h"
+#include "fixup.h"
 #include <unistd.h>
 #include <sys/uio.h>
 #include <fcntl.h>
--- a/src/auditd-event.c
+++ b/src/auditd-event.c
@@ -22,6 +22,7 @@
  */
 
 #include "config.h"
+#include "fixup.h"
 #include <stdlib.h>
 #include <unistd.h>
 #include <pthread.h>
--- a/src/auditd-listen.c
+++ b/src/auditd-listen.c
@@ -23,6 +23,7 @@
  */
 
 #include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/stat.h>
--- a/src/auditd-reconfig.c
+++ b/src/auditd-reconfig.c
@@ -22,6 +22,7 @@
  */
 
 #include "config.h"
+#include "fixup.h"
 #include <pthread.h>
 #include <signal.h>
 #include <stdlib.h>
--- a/src/auditd-sendmail.c
+++ b/src/auditd-sendmail.c
@@ -22,6 +22,7 @@
  */
 
 #include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <unistd.h>		// for access()
 #include <string.h>
--- a/src/auditd.c
+++ b/src/auditd.c
@@ -22,6 +22,7 @@
  */
 
 #include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <sys/types.h>
 #include <unistd.h>
--- a/src/ausearch.c
+++ b/src/ausearch.c
@@ -22,6 +22,7 @@
  */
 
 #include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <stdio_ext.h>
 #include <string.h>
--- a/src/autrace.c
+++ b/src/autrace.c
@@ -21,6 +21,7 @@
  */
 
 #include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <string.h>
 #include <sys/wait.h>
--- a/src/delete_all.c
+++ b/src/delete_all.c
@@ -20,6 +20,7 @@
  *      Steve Grubb <sgrubb@redhat.com>
  */
 #include "config.h"
+#include "fixup.h"
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>