diff options
| author | 2025-01-01 15:44:14 -0500 | |
|---|---|---|
| committer | 2025-01-01 15:44:14 -0500 | |
| commit | 8b5c569b53f9287e8b6c84e4402ec6f796e4cb6b (patch) | |
| tree | 1603adacfcc46c5489203d1054467d3b42353aaa /src/fs_event | |
| parent | be4eb3831a2e5b44fb6e4c2d077e3c07edf6b776 (diff) | |
| download | libnaunet-8b5c569b53f9287e8b6c84e4402ec6f796e4cb6b.tar.gz libnaunet-8b5c569b53f9287e8b6c84e4402ec6f796e4cb6b.tar.bz2 libnaunet-8b5c569b53f9287e8b6c84e4402ec6f796e4cb6b.zip | |
Add direct (same process) mode for packet stream
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/fs_event')
| -rw-r--r-- | src/fs_event/fs_event.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs_event/fs_event.h b/src/fs_event/fs_event.h index 1e99b62..2cfef07 100644 --- a/src/fs_event/fs_event.h +++ b/src/fs_event/fs_event.h @@ -2,12 +2,12 @@ #include <al/str.h> -#ifndef _WIN32 -#include <sys/inotify.h> -#define NNWT_CLOSE_WRITE IN_CLOSE_WRITE -#else +#ifdef NAUNET_ON_WINDOWS struct inotify_event {}; #define NNWT_CLOSE_WRITE 0 +#else +#include <sys/inotify.h> +#define NNWT_CLOSE_WRITE IN_CLOSE_WRITE #endif #include "../loop.h" |