aboutsummaryrefslogtreecommitdiff
path: root/include/linux/unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/unistd.h')
-rw-r--r--include/linux/unistd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/unistd.h b/include/linux/unistd.h
index 10ed9834b82..c18c60f3254 100644
--- a/include/linux/unistd.h
+++ b/include/linux/unistd.h
@@ -1,7 +1,9 @@
#ifndef _LINUX_UNISTD_H_
#define _LINUX_UNISTD_H_
+#ifdef __KERNEL__
extern int errno;
+#endif
/*
* Include machine specific syscallX macros