From: Rosen Penev <rosenp@gmail.com>
To: linux-ppp@vger.kernel.org
Subject: [PATCH] pppcrypt: Add headers for encrypt and setkey
Date: Mon, 22 Jul 2019 23:35:25 +0000 [thread overview]
Message-ID: <20190722233525.29203-1-rosenp@gmail.com> (raw)
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
reply other threads:[~2019-07-22 23:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190722233525.29203-1-rosenp@gmail.com \
--to=rosenp@gmail.com \
--cc=linux-ppp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).