diff options
author | kris <kris@FreeBSD.org> | 2000-05-27 03:01:09 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-05-27 03:01:09 +0800 |
commit | 07c3079b81d334df7c281f25f37ad0a9baeeacb1 (patch) | |
tree | b95e67acc9efaab19b6ee92b1245273974b1af3a /security | |
parent | 76221cd97c68b975578bc94ccd199f524eefad75 (diff) | |
download | freebsd-ports-gnome-07c3079b81d334df7c281f25f37ad0a9baeeacb1.tar.gz freebsd-ports-gnome-07c3079b81d334df7c281f25f37ad0a9baeeacb1.tar.zst freebsd-ports-gnome-07c3079b81d334df7c281f25f37ad0a9baeeacb1.zip |
Add kqueue() support for recent versions of -stable as well now that
they have it.
Diffstat (limited to 'security')
-rw-r--r-- | security/l0pht-watch/files/patch-ab | 16 | ||||
-rw-r--r-- | security/l0pht-watch/files/patch-ac | 4 |
2 files changed, 11 insertions, 9 deletions
diff --git a/security/l0pht-watch/files/patch-ab b/security/l0pht-watch/files/patch-ab index ce4332eec381..a84ef83adfc4 100644 --- a/security/l0pht-watch/files/patch-ab +++ b/security/l0pht-watch/files/patch-ab @@ -1,10 +1,12 @@ --- check_tmp.c.orig Fri Sep 24 13:33:35 1999 -+++ check_tmp.c Tue Apr 25 00:57:56 2000 -@@ -38,6 +38,13 @@ ++++ check_tmp.c Mon May 22 23:49:21 2000 +@@ -37,7 +37,14 @@ + char error_buffer[256]; #endif #endif - -+#if __FreeBSD_version >= 500001 +- ++ ++#if (__FreeBSD_version >= 500001) || (__FreeBSD_version >= 400019 && __FreeBSD_version < 500000) + struct kevent ev; + struct kevent *evp; + int fd; @@ -18,7 +20,7 @@ exit(1); } -+#if __FreeBSD_version >= 500001 ++#if (__FreeBSD_version >= 500001) || (__FreeBSD_version >= 400019 && __FreeBSD_version < 500000) + /* Set up the KQ on the target directory */ + fd = dirfd(dirp); + @@ -42,7 +44,7 @@ while (1){ + -+#if __FreeBSD_version >= 500001 ++#if (__FreeBSD_version >= 500001) || (__FreeBSD_version >= 400019 && __FreeBSD_version < 500000) + if (ev.fflags & NOTE_WRITE) { +#endif while ((dp = readdir(dirp)) != NULL){ @@ -59,7 +61,7 @@ list = prunelist(list); rewinddir(dirp); + -+#if __FreeBSD_version >= 500001 ++#if (__FreeBSD_version >= 500001) || (__FreeBSD_version >= 400019 && __FreeBSD_version < 500000) + /* Reset event so we don't trigger on the rewinddir */ + kevent(kq, 1, &evp, 0, NULL, &ts); + diff --git a/security/l0pht-watch/files/patch-ac b/security/l0pht-watch/files/patch-ac index cc663e00f43b..7a0d28ddf117 100644 --- a/security/l0pht-watch/files/patch-ac +++ b/security/l0pht-watch/files/patch-ac @@ -1,5 +1,5 @@ --- check_tmp.h.orig Thu Dec 24 07:40:13 1998 -+++ check_tmp.h Tue Apr 25 00:29:52 2000 ++++ check_tmp.h Mon May 22 23:45:37 2000 @@ -1,16 +1,22 @@ #ifndef __CHECK_TMP_H #define __CHECK_TMP_H @@ -20,7 +20,7 @@ +#include <stdlib.h> +#include <stdio.h> #include <unistd.h> -+#if __FreeBSD_version >= 500001 ++#if (__FreeBSD_version >= 500001) || (__FreeBSD_version >= 400019 && __FreeBSD_version < 500000) +#include <sys/event.h> +#include <sys/time.h> +#include <err.h> |