summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaya Rashish <maya@NetBSD.org>2020-05-29 23:19:05 +0300
committerRay Strode <halfline@gmail.com>2021-09-30 19:02:04 +0000
commitb5697c2a7cf404bdd4db196e4e0a49790de9a4be (patch)
tree55aee76864ed3a27d0bd18277f354e6c24750305
parent1bcf98d173590e8e1472134db99a8a036769b7d8 (diff)
Conditionalize more use of shadow.h
-rw-r--r--src/user.h2
-rw-r--r--src/wtmp-helper.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/user.h b/src/user.h
index b3b3380..0134c17 100644
--- a/src/user.h
+++ b/src/user.h
@@ -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);