diff options
author | Maya Rashish <maya@NetBSD.org> | 2020-05-29 23:19:05 +0300 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2021-09-30 19:02:04 +0000 |
commit | b5697c2a7cf404bdd4db196e4e0a49790de9a4be (patch) | |
tree | 55aee76864ed3a27d0bd18277f354e6c24750305 | |
parent | 1bcf98d173590e8e1472134db99a8a036769b7d8 (diff) |
Conditionalize more use of shadow.h
-rw-r--r-- | src/user.h | 2 | ||||
-rw-r--r-- | src/wtmp-helper.h | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -22,7 +22,9 @@ #include <sys/types.h> #include <pwd.h> +#ifdef HAVE_SHADOW_H #include <shadow.h> +#endif #include <glib.h> #include <gio/gio.h> diff --git a/src/wtmp-helper.h b/src/wtmp-helper.h index 047ea5c..9f87ed4 100644 --- a/src/wtmp-helper.h +++ b/src/wtmp-helper.h @@ -23,7 +23,9 @@ #include <glib.h> #include <pwd.h> +#ifdef HAVE_SHADOW_H #include <shadow.h> +#endif const gchar * wtmp_helper_get_path_for_monitor (void); void wtmp_helper_update_login_frequencies (GHashTable *users); |