pppcrypt: Add headers for encrypt and setkey
PATCH 1/1 pppcrypt: Add headers for encrypt and setkey
Fixes compilation with musl when building against strict C standard. Implicit function declarations are a GNU extension.
Signed-off-by Rosen Penev <[email protected]>
--- pppd/pppcrypt.h | 3 +++ 1 file changed, 3 insertions(+)
pppd/pppcrypt.h +3 -0
@@ -41,6 +41,9 @@#include <des.h> #endif +#include <stdlib.h> /* for encrypt */ +#include <unistd.h> /* for setkey */ + extern bool DesSetkey __P((u_char *)); extern bool DesEncrypt __P((u_char *, u_char *)); extern bool DesDecrypt __P((u_char *, u_char *));
Signature · 1 line
2.17.1