[yocto] [pseudo] openat.c: fix flags in wrap_openat
Juro Bystricky
juro.bystricky at intel.com
Tue May 23 14:00:44 PDT 2017
Due to a silly typo we use incorrect open flags.
Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
---
ports/darwin/guts/open.c | 2 +-
ports/linux/guts/openat.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ports/darwin/guts/open.c b/ports/darwin/guts/open.c
index f34b0d3..307bcc9 100644
--- a/ports/darwin/guts/open.c
+++ b/ports/darwin/guts/open.c
@@ -12,7 +12,7 @@
/* mask out mode bits appropriately */
mode = mode & ~pseudo_umask;
-#ifdef PSEUDO_FORCE_ASYNCH
+#ifdef PSEUDO_FORCE_ASYNC
flags &= ~O_SYNC;
#endif
diff --git a/ports/linux/guts/openat.c b/ports/linux/guts/openat.c
index eb7c0b5..5b26e08 100644
--- a/ports/linux/guts/openat.c
+++ b/ports/linux/guts/openat.c
@@ -20,7 +20,7 @@
}
#endif
-#ifdef PSEUDO_FORCE_ASYNCH
+#ifdef PSEUDO_FORCE_ASYNC
/* Yes, I'm aware that every Linux system I've seen has
* DSYNC and RSYNC being the same value as SYNC.
*/
--
2.7.4
More information about the yocto
mailing list