Skip to content

Commit 01f9571

Browse files
committed
implement NOTE_REVOKE configure check
Signed-off-by: Daniel A. Steffen <[email protected]>
1 parent d5a0f55 commit 01f9571

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

config/config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
don't. */
2222
#define HAVE_DECL_NOTE_REAP 1
2323

24+
/* Define to 1 if you have the declaration of `NOTE_REVOKE', and to 0 if you
25+
don't. */
26+
#define HAVE_DECL_NOTE_REVOKE 1
27+
2428
/* Define to 1 if you have the declaration of `NOTE_SIGNAL', and to 0 if you
2529
don't. */
2630
#define HAVE_DECL_NOTE_SIGNAL 1

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ AM_CONDITIONAL(USE_MIG, $have_mach)
232232
#
233233
AC_CHECK_DECLS([CLOCK_UPTIME, CLOCK_MONOTONIC], [], [],
234234
[[#include <time.h>]])
235-
AC_CHECK_DECLS([NOTE_NONE, NOTE_REAP, NOTE_SIGNAL], [], [],
235+
AC_CHECK_DECLS([NOTE_NONE, NOTE_REAP, NOTE_REVOKE, NOTE_SIGNAL], [], [],
236236
[[#include <sys/event.h>]])
237237
AC_CHECK_DECLS([FD_COPY], [], [], [[#include <sys/select.h>]])
238238
AC_CHECK_DECLS([SIGEMT], [], [], [[#include <signal.h>]])

src/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ const struct dispatch_source_type_s _dispatch_source_type_vnode = {
11611161
.mask = NOTE_DELETE|NOTE_WRITE|NOTE_EXTEND|NOTE_ATTRIB|NOTE_LINK|
11621162
NOTE_RENAME
11631163
#if HAVE_DECL_NOTE_REVOKE
1164-
|NOTE_REVOKE
1164+
|NOTE_REVOKE
11651165
#endif
11661166
#if HAVE_DECL_NOTE_NONE
11671167
|NOTE_NONE

0 commit comments

Comments
 (0)