]> git.pld-linux.org Git - packages/evlog.git/blame - evlog-glibc.patch
- BR: sed 4
[packages/evlog.git] / evlog-glibc.patch
CommitLineData
4d3896ba
JB
1--- evlog-1.6.1/user/cmd/evlogd/evlogd.c.orig 2004-12-15 18:04:20.000000000 +0100
2+++ evlog-1.6.1/user/cmd/evlogd/evlogd.c 2013-03-23 20:30:12.958256334 +0100
3@@ -24,6 +24,9 @@
4 *
5 */
6
7+/* for ucred */
8+#define _GNU_SOURCE
9+
10 #include <stdio.h> /* Defines NULL */
11 #include <stdarg.h> /* Defines va_args */
12 #include <fcntl.h> /* Defines FILE, fopen() */
13--- evlog-1.6.1/user/cmd/evlnotifyd/evlnotifyd.c.orig 2004-03-23 23:18:23.000000000 +0100
14+++ evlog-1.6.1/user/cmd/evlnotifyd/evlnotifyd.c 2013-03-23 20:44:21.344887153 +0100
15@@ -24,6 +24,9 @@
16 *
17 */
18
19+/* for ucred */
20+#define _GNU_SOURCE
21+
22 #include <stdio.h>
23 #include <string.h>
24 #include <fcntl.h>
25--- evlog-1.6.1/user/cmd/evlnotifyd/evlnotifyd.c.orig 2013-03-23 20:44:42.268219607 +0100
26+++ evlog-1.6.1/user/cmd/evlnotifyd/evlnotifyd.c 2013-03-23 21:14:51.028143701 +0100
27@@ -43,6 +43,7 @@
28 #include <stdlib.h>
29 #include <sys/stat.h>
30 #include <sys/types.h>
31+#include <sys/wait.h>
32
33 #include <sys/syscall.h>
34 #include <syslog.h>
35@@ -674,7 +675,7 @@
36 */
37 if((req->nfyhdr.flags & POSIX_LOG_NFY_DISABLED) == 0 ) {
38 int match;
39- struct siginfo si;
40+ siginfo_t si;
41 union sigval val;
42 int ret;
43 if (req->nfy_query.qu_tree != NULL) {
44--- evlog-1.6.1/user/cmd/evlactiond/evlactiond.c.orig 2004-09-08 19:36:36.000000000 +0200
45+++ evlog-1.6.1/user/cmd/evlactiond/evlactiond.c 2013-03-23 21:17:42.788136509 +0100
46@@ -24,6 +24,8 @@
47 *
48 */
49
50+/* for ucred */
51+#define _GNU_SOURCE
52
53 #include <stdlib.h>
54 #include <stdio.h>
55@@ -41,6 +43,7 @@
56 #include <assert.h>
57 #include <grp.h>
58 #include <pwd.h>
59+#include <limits.h>
60 #include <sys/wait.h>
61
62 #include "config.h"
63@@ -1580,7 +1583,7 @@
64 struct passwd *pw;
65 evl_listnode_t *p;
66
67- fd = open(EVLACTIOND_REG_FILE, O_RDONLY|O_CREAT);
68+ fd = open(EVLACTIOND_REG_FILE, O_RDONLY|O_CREAT, S_IRWXU);
69 if ( fd < 0) {
70 perror(EVLACTIOND_REG_FILE);
71 return -1;
72--- evlog-1.6.1/user/cmd/evlnotify/evlnotify.c.orig 2004-03-25 01:30:24.000000000 +0100
73+++ evlog-1.6.1/user/cmd/evlnotify/evlnotify.c 2013-03-23 21:18:21.851468158 +0100
74@@ -37,6 +37,7 @@
75 #include <assert.h>
76 #include <pwd.h>
77 #include <grp.h>
78+#include <limits.h>
79
80
81 #include "config.h"
82--- evlog-1.6.1/user/cmd/ela/ela_sig_send.c.orig 2004-02-21 04:51:40.000000000 +0100
83+++ evlog-1.6.1/user/cmd/ela/ela_sig_send.c 2013-03-23 21:19:49.531464507 +0100
84@@ -51,7 +51,7 @@
85 int recid = -1;
86 pid_t pid = -1;
87 int sub_id = 234; /* just an extra field, that we can use */
88- struct siginfo si;
89+ siginfo_t si;
90 union sigval val;
91 int ret;
92 char *flag;
This page took 0.061361 seconds and 4 git commands to generate.