--- src/user.h.orig 2016-09-06 17:31:50 UTC +++ src/user.h @@ -22,7 +22,9 @@ #include #include +#ifdef HAVE_SHADOW_H #include +#endif #include #include @@ -54,9 +56,14 @@ GType user_get_type (void) G_G User * user_new (Daemon *daemon, uid_t uid); +#ifdef HAVE_SHADOW_H void user_update_from_pwent (User *user, struct passwd *pwent, struct spwd *spent); +#else +void user_update_from_pwent (User *user, + struct passwd *pwent); +#endif void user_update_from_keyfile (User *user, GKeyFile *keyfile); void user_update_local_account_property (User *user,