summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-17 07:12:58 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-17 07:12:58 -0700
commit90ae6e1230c8ec337d578f89549512d06db3d043 (patch)
tree3461b338d88ed0643cd1e07e375b493c78ad00df
parenta937b2bb1f550766e96b8b8994d7fdc4580bdf13 (diff)
downloadtxr-90ae6e1230c8ec337d578f89549512d06db3d043.tar.gz
txr-90ae6e1230c8ec337d578f89549512d06db3d043.tar.bz2
txr-90ae6e1230c8ec337d578f89549512d06db3d043.zip
sysif: define passwd_s if we have <grp.h>.
* sysif.c (passwd_s): Define for either HAVE_PWUID or HAVE_GRGID, since this symbol variable is referenced in code protected by either preprocessor symbol.
-rw-r--r--sysif.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysif.c b/sysif.c
index 3e482897..f9717ede 100644
--- a/sysif.c
+++ b/sysif.c
@@ -124,8 +124,12 @@ val atime_s, mtime_s, ctime_s;
val atime_nsec_s, mtime_nsec_s, ctime_nsec_s;
val path_s, dir_s, dirent_s;
+#if HAVE_PWUID || HAVE_GRGID
+val passwd_s;
+#endif
+
#if HAVE_PWUID
-val passwd_s, gecos_s, shell_s;
+val gecos_s, shell_s;
#endif
#if HAVE_GRGID