diff options
Diffstat (limited to 'include/asm-arm/unistd.h')
-rw-r--r-- | include/asm-arm/unistd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-arm/unistd.h b/include/asm-arm/unistd.h index 1e891f860ef3..2ab4078334bf 100644 --- a/include/asm-arm/unistd.h +++ b/include/asm-arm/unistd.h | |||
@@ -377,6 +377,7 @@ | |||
377 | #endif | 377 | #endif |
378 | 378 | ||
379 | #ifdef __KERNEL__ | 379 | #ifdef __KERNEL__ |
380 | #include <linux/err.h> | ||
380 | #include <linux/linkage.h> | 381 | #include <linux/linkage.h> |
381 | 382 | ||
382 | #define __sys2(x) #x | 383 | #define __sys2(x) #x |
@@ -396,7 +397,7 @@ | |||
396 | 397 | ||
397 | #define __syscall_return(type, res) \ | 398 | #define __syscall_return(type, res) \ |
398 | do { \ | 399 | do { \ |
399 | if ((unsigned long)(res) >= (unsigned long)(-129)) { \ | 400 | if ((unsigned long)(res) >= (unsigned long)(-MAX_ERRNO)) { \ |
400 | errno = -(res); \ | 401 | errno = -(res); \ |
401 | res = -1; \ | 402 | res = -1; \ |
402 | } \ | 403 | } \ |