summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file/ecore_file_monitor_inotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_file/ecore_file_monitor_inotify.c')
-rw-r--r--src/lib/ecore_file/ecore_file_monitor_inotify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_file/ecore_file_monitor_inotify.c b/src/lib/ecore_file/ecore_file_monitor_inotify.c
index be3564602f..112bc81f14 100644
--- a/src/lib/ecore_file/ecore_file_monitor_inotify.c
+++ b/src/lib/ecore_file/ecore_file_monitor_inotify.c
@@ -50,7 +50,7 @@ int
50ecore_file_monitor_backend_init(void) 50ecore_file_monitor_backend_init(void)
51{ 51{
52 int fd; 52 int fd;
53#ifdef HAVE_EXECVP 53#ifdef HAVE_FCNTL
54 int flags; 54 int flags;
55#endif 55#endif
56 56
@@ -58,7 +58,7 @@ ecore_file_monitor_backend_init(void)
58 if (fd < 0) 58 if (fd < 0)
59 return 0; 59 return 0;
60 60
61#ifdef HAVE_EXECVP 61#ifdef HAVE_FCNTL
62 flags = fcntl(fd, F_GETFD); 62 flags = fcntl(fd, F_GETFD);
63 flags |= FD_CLOEXEC; 63 flags |= FD_CLOEXEC;
64 fcntl(fd, F_SETFD, flags); 64 fcntl(fd, F_SETFD, flags);