diff mbox series

[uclibc-ng-devel] libcrypt: add missing errno.h header

Message ID 20201123130145.26062-1-ysionneau@kalray.eu
State Accepted
Headers show
Series [uclibc-ng-devel] libcrypt: add missing errno.h header | expand

Commit Message

Yann Sionneau Nov. 23, 2020, 1:01 p.m. UTC
Fixes:
libcrypt/crypt.c:29:15: error: 'EINVAL' undeclared (first use in this function)
   __set_errno(EINVAL);
               ^~~~~~

Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
---
 libcrypt/crypt.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libcrypt/crypt.c b/libcrypt/crypt.c
index 9819029f2..cfcd11f91 100644
--- a/libcrypt/crypt.c
+++ b/libcrypt/crypt.c
@@ -6,6 +6,7 @@ 
 
 #include <unistd.h>
 #include <crypt.h>
+#include <errno.h>
 #include "libcrypt.h"
 
 char *crypt(const char *key, const char *salt)