changeset 3196:60af832fd27d

Fixed #285: Added proprocessor check to update prototype for scandir sort
author unexist
date Thu, 22 Mar 2012 16:16:07 +0100
parents 2583e821e800
children 0fd82ca59a03
files src/subtle/ruby.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/subtle/ruby.c	Thu Mar 22 16:02:44 2012 +0100
+++ b/src/subtle/ruby.c	Thu Mar 22 16:16:07 2012 +0100
@@ -75,7 +75,11 @@
 
 /* RubyFilter {{{ */
 static inline int
+#ifdef IS_OPENBSD
+RubyFilter(struct dirent *entry)
+#else
 RubyFilter(const struct dirent *entry)
+#endif
 {
   return !fnmatch("*.rb", entry->d_name, FNM_PATHNAME);
 } /* }}} */