python/hypothesis: update to 6.122.3
[oi-userland.git] / components / desktop / gnome / gnome-keyring / patches / 02-pam-defines.patch
blobc5e69c51ce2569891ac64a77a1ac00d73a7034b4
1 On Solaris, pam modules are always dynamic, but use the #define check that
2 gnome-keyring does in gkr-pam-module.c for consistency.
4 Solaris should define PAM_EXTERN by default in appropriate pam header files
5 just as Linux/BSD do:
6 24969227 Add PAM_EXTERN for Linux/BSD module source compatibility
8 --- gnome-keyring-42.1/pam/mock-pam.c.orig
9 +++ gnome-keyring-42.1/pam/mock-pam.c
10 @@ -31,6 +31,14 @@
11 #include <stdlib.h>
12 #include <string.h>
14 +#ifndef PAM_EXTERN
15 +#ifdef PAM_STATIC
16 +#define PAM_EXTERN static
17 +#else
18 +#define PAM_EXTERN extern
19 +#endif
20 +#endif
22 static int
23 prompt_password (pam_handle_t *ph,
24 const char *prompt,