summaryrefslogtreecommitdiff
path: root/include/libc/libc_fcntl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libc/libc_fcntl.h')
-rw-r--r--include/libc/libc_fcntl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libc/libc_fcntl.h b/include/libc/libc_fcntl.h
index 39740b7d85..d149d86964 100644
--- a/include/libc/libc_fcntl.h
+++ b/include/libc/libc_fcntl.h
@@ -12,7 +12,7 @@
#ifndef LIBC_FCNTL_H__
#define LIBC_FCNTL_H__
-#if defined(RT_USING_NEWLIB) || defined(_WIN32) || defined( __GNUC__ )
+#if defined(RT_USING_NEWLIB) || defined(_WIN32) || (defined( __GNUC__ ) && !defined(__ARMCC_VERSION))
#include <fcntl.h>
#ifndef O_NONBLOCK