]> granicus.if.org Git - strace/commitdiff
xlat: use IN_* prefix for inotify_init1 flag constants
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 13 Oct 2016 07:50:40 +0000 (10:50 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 27 Oct 2016 23:31:44 +0000 (23:31 +0000)
* xlat/inotify_init_flags.in: Replace O_* prefix with IN_* prefix for
O_NONBLOCK and O_CLOEXEC constants, provide fallback definitions.

xlat/inotify_init_flags.in

index fb0338bcccbd7f07d83aff69d4008031f6ccbe9e..163fb8f7e8d0db7df191bb2c240214a527517019 100644 (file)
@@ -1,2 +1,4 @@
-O_NONBLOCK
-O_CLOEXEC
+IN_NONBLOCK O_NONBLOCK
+#if defined IN_CLOEXEC || defined O_CLOEXEC
+IN_CLOEXEC  O_CLOEXEC
+#endif