瀏覽代碼

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 5 年之前
父節點
當前提交
6993d93782
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)