head 1.1; access; symbols pkgsrc-2026Q2:1.1.0.2 pkgsrc-2026Q2-base:1.1; locks; strict; comment @ * @; 1.1 date 2026.06.18.14.27.56; author nia; state Exp; branches; next ; commitid ohT0Yn1UgEq4WhKG; desc @@ 1.1 log @libcrack: Fix various build problems with GCC 14 and GCC 15. Unfortunately, libcrack relied on quite a lot of implicit declarations of internal functions. It makes use of syntax that predates standardized C, so force an older standard version as insurance against future C compilers getting stricter. @ text @$NetBSD$ Fix implicit declarations in various files, including packlib.c and fascist.c. --- cracklib/packer.h.orig 1997-12-31 10:26:01.000000000 +0000 +++ cracklib/packer.h @@@@ -7,6 +7,8 @@@@ */ #include +#include +#include #include #define STRINGSIZE 1024 @@@@ -52,7 +54,14 @@@@ extern PWDICT *PWOpen(); #define PIH_MAGIC 0x70775631 extern PWDICT *PWOpen(); +extern int PutPW(PWDICT *, char *); +extern int PMatch(register char *, register char *); +extern int PWClose(PWDICT *); +extern int32 FindPW(PWDICT *, char *); +extern char *GetPW(PWDICT *, int32); extern char *Mangle(); +extern char *Trim(register char *); +extern char Chop(register char *string); extern char *FascistCheck(); #define CRACK_TOLOWER(a) (isupper(a)?tolower(a):(a)) @