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(+)

diff --git a/pppd/pppcrypt.h b/pppd/pppcrypt.h
index adcdcbc..48d0d1a 100644
--- a/pppd/pppcrypt.h
+++ b/pppd/pppcrypt.h
@@ -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 *));
-- 
2.17.1

Reply via email to