summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysif.c2
-rw-r--r--sysif.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/sysif.c b/sysif.c
index 1ad5db35..1b9b07d3 100644
--- a/sysif.c
+++ b/sysif.c
@@ -608,7 +608,7 @@ static val stat_to_list(struct stat st)
nao);
}
-static val stat_to_struct(struct stat st)
+val stat_to_struct(struct stat st)
{
args_decl(args, ARGS_MIN);
val strct = make_struct(stat_s, nil, args);
diff --git a/sysif.h b/sysif.h
index ebba51db..99cb3ac0 100644
--- a/sysif.h
+++ b/sysif.h
@@ -43,6 +43,10 @@ typedef long off_t;
#endif
val getenv_wrap(val name);
+#if HAVE_SYS_STAT
+struct stat;
+val stat_to_struct(struct stat st);
+#endif
val statp(val path);
val statf(val path);
off_t off_t_num(val num);