diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2002-12-15 02:00:22 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2002-12-15 02:00:22 +0000 |
commit | fb2c0055d067a0c3bc50d948de49bd6611d472fe (patch) | |
tree | edd21c4fce5439765c3f6de45ef7b5448efa8fd7 /file_io | |
parent | 93d2103f701200207dc872b71d53441c28976893 (diff) | |
download | libapr-fb2c0055d067a0c3bc50d948de49bd6611d472fe.tar.gz |
Fix a compile break on Solaris, and a warning on Linux. If the function
isn't used, it shouldn't be declared. This should probably also be static,
but I haven't digested it yet.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64172 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/unix/dir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/file_io/unix/dir.c b/file_io/unix/dir.c index 2d23f591c..c38e303b9 100644 --- a/file_io/unix/dir.c +++ b/file_io/unix/dir.c @@ -140,6 +140,7 @@ apr_status_t apr_dir_close(apr_dir_t *thedir) return apr_pool_cleanup_run(thedir->pool, thedir, dir_cleanup); } +#ifdef DIRENT_TYPE apr_filetype_e apr_filetype_from_dirent_type(int type) { switch (type) { @@ -165,7 +166,7 @@ apr_filetype_e apr_filetype_from_dirent_type(int type) return APR_UNKFILE; } } - +#endif apr_status_t apr_dir_read(apr_finfo_t *finfo, apr_int32_t wanted, apr_dir_t *thedir) |