summaryrefslogtreecommitdiff
blob: d20440c27e3aaa3a75a6943bf3e672fdc9e379ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
https://bugs.gentoo.org/597646
Port to musl libc.

--- skey-1.1.5-orig/skey.h
+++ skey-1.1.5/skey.h
@@ -67,6 +67,10 @@
 /* Location of random file for bogus challenges */
 #define _SKEY_RAND_FILE_PATH_	"/var/db/host.random"
 
+#ifndef __P
+#define __P(x) x
+#endif
+
 /* Prototypes */
 void f __P ((char *));
 int keycrunch __P ((char *, const char *, const char *));
--- skey-1.1.5-orig/skeyinit.c
+++ skey-1.1.5/skeyinit.c
@@ -36,6 +36,7 @@
 #include <syslog.h>
 #include <time.h>
 #include <unistd.h>
+#include <paths.h>
 #ifdef HAVE_CRYPT_H
 #include <crypt.h>
 #endif