summaryrefslogtreecommitdiff
path: root/include/errno.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/errno.h')
-rw-r--r--include/errno.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/errno.h b/include/errno.h
index 390e51521..203a62e3e 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -43,8 +43,10 @@ __BEGIN_DECLS
variable. This redeclaration using the macro still works, but it
will be a function declaration without a prototype and may trigger
a -Wstrict-prototypes warning. */
-#ifndef errno
+#ifndef __ASSEMBLER__
+# ifndef errno
extern int errno;
+# endif
#endif
#if 0 /*def __USE_GNU uClibc note: not supported */