Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 1 | From 9e7894b97ae7afe43a9901b774de5aef401549ac Mon Sep 17 00:00:00 2001 |
| 2 | From: Bartosz Golaszewski <brgl@bgdev.pl> |
| 3 | Date: Thu, 28 Apr 2022 16:32:06 +0200 |
| 4 | Subject: [PATCH] ext: define FNM_EXTMATCH if not already defined |
| 5 | |
| 6 | On musl this constant is not defined. Define it locally if not present. |
| 7 | |
| 8 | Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> |
| 9 | --- |
| 10 | Upstream-Status: Inappropriate |
| 11 | |
| 12 | src/ext.c | 3 +++ |
| 13 | 1 file changed, 3 insertions(+) |
| 14 | |
| 15 | diff --git a/src/ext.c b/src/ext.c |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 16 | index e0bbe21..7d979d3 100644 |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 17 | --- a/src/ext.c |
| 18 | +++ b/src/ext.c |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 19 | @@ -19,6 +19,9 @@ |
| 20 | #include <sys/vfs.h> |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 21 | #include <unistd.h> |
| 22 | |
| 23 | +#ifndef FNM_EXTMATCH |
| 24 | +#define FNM_EXTMATCH 0 |
| 25 | +#endif |
| 26 | |
| 27 | PyDoc_STRVAR(ext__doc__, |
| 28 | "Wrapper for fanotify.\n" |
| 29 | -- |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 30 | 2.34.1 |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 31 | |