Skip to content

Commit be487ae

Browse files
committed
x11/xfce4-screensaver: Fix build when PAM option is off
When PAM option is off a different file is compiled, which, since version 4.18.3, tries to include crypt.h. Such file is not present in FreeBSD. The relevant definitions are in unistd.h. Fix by adding ifdef to skip such problematic include. Reported upstream: https://gitlab.xfce.org/apps/xfce4-screensaver/-/merge_requests/29 PR: 277763
1 parent 15d0671 commit be487ae

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--- src/gs-auth-pwent.c.orig 2023-03-20 15:38:27 UTC
2+
+++ src/gs-auth-pwent.c
3+
@@ -37,10 +37,12 @@
4+
# include <unistd.h>
5+
#endif
6+
7+
-#ifdef HAVE_LIBCRYPT
8+
-# include <crypt.h>
9+
-#else
10+
-# define crypt(a, b) NULL
11+
+#if !defined(__FreeBSD__)
12+
+# ifdef HAVE_LIBCRYPT
13+
+# include <crypt.h>
14+
+# else
15+
+# define crypt(a, b) NULL
16+
+# endif
17+
#endif
18+
19+
#ifdef __bsdi__

0 commit comments

Comments
 (0)