summaryrefslogtreecommitdiffstats
path: root/lib/errno_names.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/errno_names.c')
-rw-r--r--lib/errno_names.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/errno_names.c b/lib/errno_names.c
index 3c1ff23c..be3fda51 100644
--- a/lib/errno_names.c
+++ b/lib/errno_names.c
@@ -178,7 +178,9 @@ static const char* errno_name_table[] =
ERRNO(ECOMM), /* Communication error on send */
#endif
#ifdef EDEADLOCK
+# ifndef EDEADLK
ERRNO(EDEADLOCK), /* same as EDEADLK */
+# endif
#endif
#ifdef EDOTDOT
ERRNO(EDOTDOT), /* RFS specific error */