rbb 2002/12/14 18:00:22
Modified: file_io/unix dir.c
Log:
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.
Revision Changes Path
1.67 +2 -1 apr/file_io/unix/dir.c
Index: dir.c
===================================================================
RCS file: /home/cvs/apr/file_io/unix/dir.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- dir.c 15 Dec 2002 00:15:06 -0000 1.66
+++ dir.c 15 Dec 2002 02:00:22 -0000 1.67
@@ -140,6 +140,7 @@
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 @@
return APR_UNKFILE;
}
}
-
+#endif
apr_status_t apr_dir_read(apr_finfo_t *finfo, apr_int32_t wanted,
apr_dir_t *thedir)