Browse Source

libcrypt: add missing errno.h header

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>
Yann Sionneau 3 years ago
parent
commit
6993d93782
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libcrypt/crypt.c

+ 1 - 0
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)