linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pppcrypt: Add headers for encrypt and setkey
@ 2019-07-22 23:35 Rosen Penev
  0 siblings, 0 replies; only message in thread
From: Rosen Penev @ 2019-07-22 23:35 UTC (permalink / raw)
  To: linux-ppp

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

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-22 23:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-22 23:35 [PATCH] pppcrypt: Add headers for encrypt and setkey Rosen Penev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).