Skip to contentSkip to conversation

pppcrypt: Add headers for encrypt and setkey

PATCH New Rosen Penev 1 participant 1 message Jul 22, 2019 PPP protocol drivers and compressors

lore
Share & tools
lore
#0 lore raw

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.

---
 pppd/pppcrypt.h | 3 +++
 1 file changed, 3 insertions(+)
pppd/pppcrypt.h +3 -0
index adcdcbc..48d0d1a 100644
@@ -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