1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

net/netatalk3: Fix build on 14.X

PR:		275261
With a little help from:	girgen
This commit is contained in:
Joe Marcus Clarke 2023-11-22 11:10:44 -05:00
parent 956c42a3d4
commit 4f1b8980a5
3 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- etc/uams/uams_dhx2_pam.c.orig 2023-11-22 15:19:12 UTC
+++ etc/uams/uams_dhx2_pam.c
@@ -136,7 +136,7 @@ error:
* echo off means password.
*/
static int PAM_conv (int num_msg,
-#ifdef LINUX
+#if defined(LINUX) || (defined(FREEBSD) && __FreeBSD_version >= 1400000)
const struct pam_message **msg,
#else
struct pam_message **msg,

View File

@ -0,0 +1,19 @@
--- etc/uams/uams_dhx_pam.c.orig 2023-11-22 15:18:15 UTC
+++ etc/uams/uams_dhx_pam.c
@@ -8,6 +8,7 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
+#include <sys/param.h>
#if defined(USE_PAM) && defined(UAM_DHX)
#include <stdio.h>
@@ -80,7 +80,7 @@ static char *PAM_password;
* echo off means password.
*/
static int PAM_conv (int num_msg,
-#ifdef LINUX
+#if defined(LINUX) || (defined(__FreeBSD_version) && __FreeBSD_version >= 1400000)
const struct pam_message **msg,
#else
struct pam_message **msg,

View File

@ -0,0 +1,11 @@
--- etc/uams/uams_pam.c.orig 2023-11-22 15:00:28 UTC
+++ etc/uams/uams_pam.c
@@ -53,7 +53,7 @@ extern UAM_MODULE_EXPORT void append(struct papfile *,
* echo off means password.
*/
static int PAM_conv (int num_msg,
-#ifdef LINUX
+#if defined(LINUX) || (defined(FREEBSD) && __FreeBSD_version >= 1400000)
const struct pam_message **msg,
#else
struct pam_message **msg,