[PATCH] pppcrypt: Add headers for encrypt and setkey

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes compilation with musl when building against strict C standard.
Implicit function declarations are a GNU extension.

Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
---
 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




[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux