Changeset View
Changeset View
Standalone View
Standalone View
sysutils/accountsservice/files/patch-src_user.h
| --- src/user.h.orig 2016-09-06 17:31:50 UTC | --- src/user.h.orig 2022-01-28 20:47:34 UTC | ||||
| +++ src/user.h | +++ src/user.h | ||||
| @@ -22,7 +22,9 @@ | @@ -54,11 +54,16 @@ typedef enum { | ||||
| #include <sys/types.h> | GType user_get_type (void) G_GNUC_CONST; | ||||
| #include <pwd.h> | |||||
| +#ifdef HAVE_SHADOW_H | |||||
| #include <shadow.h> | |||||
| +#endif | |||||
| #include <glib.h> | |||||
| #include <gio/gio.h> | |||||
| @@ -54,9 +56,14 @@ GType user_get_type (void) G_G | |||||
| User * user_new (Daemon *daemon, | User * user_new (Daemon *daemon, | ||||
| uid_t uid); | - uid_t uid); | ||||
| + uid_t uid); | |||||
| +#ifdef HAVE_SHADOW_H | +#ifdef HAVE_SHADOW_H | ||||
| void user_update_from_pwent (User *user, | void user_update_from_pwent (User *user, | ||||
| struct passwd *pwent, | struct passwd *pwent, | ||||
| Context not available. | |||||
| +void user_update_from_pwent (User *user, | +void user_update_from_pwent (User *user, | ||||
| + struct passwd *pwent); | + struct passwd *pwent); | ||||
| +#endif | +#endif | ||||
| void user_update_from_keyfile (User *user, | void user_update_from_cache (User *user); | ||||
| GKeyFile *keyfile); | |||||
| void user_update_local_account_property (User *user, | void user_update_local_account_property (User *user, | ||||
| gboolean local); | |||||
| Context not available. | |||||