|
Lines 1-21
Link Here
|
| 1 |
--- fdwatch.c.orig Tue Apr 24 18:40:22 2001 |
1 |
--- fdwatch.c.orig Fri Aug 24 00:19:39 2001 |
| 2 |
+++ fdwatch.c Tue Apr 24 19:00:57 2001 |
2 |
+++ fdwatch.c Fri Aug 24 00:20:30 2001 |
| 3 |
@@ -32,6 +32,7 @@ |
3 |
@@ -311,6 +311,9 @@ |
| 4 |
#include <sys/time.h> |
4 |
if ( kqchanges == (struct kevent*) 0 || kqevents == (struct kevent*) 0 || |
| 5 |
#include <sys/resource.h> |
5 |
kqrfdidx == (int*) 0 ) |
| 6 |
#include <syslog.h> |
6 |
return -1; |
| 7 |
+#include <sys/param.h> |
7 |
+ memset(kqchanges, '\0', sizeof(struct kevent) * 2 * nfiles); |
|
|
8 |
+ memset(kqevents, '\0', sizeof(struct kevent) * nfiles); |
| 9 |
+ memset(kqrfdidx, '\0', sizeof(int) * nfiles); |
| 10 |
return 0; |
| 11 |
} |
| 8 |
|
12 |
|
| 9 |
#ifndef MIN |
|
|
| 10 |
#define MIN(a,b) ((a) < (b) ? (a) : (b)) |
| 11 |
@@ -44,6 +45,10 @@ |
| 12 |
#include <sys/poll.h> |
| 13 |
#endif /* HAVE_SYS_POLL_H */ |
| 14 |
#endif /* HAVE_POLL_H */ |
| 15 |
+ |
| 16 |
+#ifdef HAVE_FREEBSD_CURRENT |
| 17 |
+#undef HAVE_KQUEUE |
| 18 |
+#endif |
| 19 |
|
| 20 |
#ifdef HAVE_SYS_EVENT_H |
| 21 |
#include <sys/event.h> |