From 1fa542989ab949b34fcc8f58c8b37e0f20725708 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Thu, 30 Jun 2011 11:32:09 +0200 Subject: [PATCH] HAVE_POSIX warning fix * libguile/filesys.c (scm_dir_free, scm_dir_print): Don't compile when not HAVE_POSIX. --- libguile/filesys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libguile/filesys.c b/libguile/filesys.c index 86287a170..ceec87776 100644 --- a/libguile/filesys.c +++ b/libguile/filesys.c @@ -1788,6 +1788,7 @@ SCM_DEFINE (scm_closedir, "closedir", 1, 0, 0, #undef FUNC_NAME +#ifdef HAVE_POSIX static int scm_dir_print (SCM exp, SCM port, scm_print_state *pstate SCM_UNUSED) { @@ -1808,6 +1809,7 @@ scm_dir_free (SCM p) closedir ((DIR *) SCM_SMOB_DATA_1 (p)); return 0; } +#endif