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
commit0d7ea2f190c05cc53ac0d91c919d56c39e0f3b5c (patch)
tree3461b338d88ed0643cd1e07e375b493c78ad00df
parent13bfbb1f928ecda0611bdf5f17b96875ca82d425 (diff)
downloadtxr-0d7ea2f190c05cc53ac0d91c919d56c39e0f3b5c.tar.gz
txr-0d7ea2f190c05cc53ac0d91c919d56c39e0f3b5c.tar.bz2
txr-0d7ea2f190c05cc53ac0d91c919d56c39e0f3b5c.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