You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
1.7 KiB

Index: src/sort.c
--- src/sort.c.orig 2012-06-03 13:15:30.000000000 +0200
+++ src/sort.c 2012-06-05 10:19:09.000000000 +0200
@@ -43,7 +43,7 @@
static int sort_type;
static int sort_dir_list(const void *one, const void *two);
-#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__)
+#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__)
#ifndef TEST
static
#endif
@@ -96,14 +96,14 @@
if(!cfg.sort_numbers)
return strcmp(s, t);
else
-#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__)
+#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__)
return vercmp(s, t);
#else
return strverscmp(s, t);
#endif
}
-#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__)
+#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__)
#ifndef TEST
static
#endif
Index: src/utils/utils.c
--- src/utils/utils.c.orig 2012-06-03 13:15:30.000000000 +0200
+++ src/utils/utils.c 2012-06-05 10:18:47.000000000 +0200
@@ -36,7 +36,7 @@
#include <sys/wait.h> /* waitpid() */
#endif
-#if !defined(_WIN32) && !defined(__APPLE__)
+#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__)
#include <mntent.h> /* getmntent() */
#endif
@@ -257,7 +257,7 @@
int
is_on_slow_fs(const char *full_path)
{
-#if defined(_WIN32) || defined(__APPLE__)
+#if defined(_WIN32) || defined(__APPLE__) || defined(__FreeBSD__)
return 0;
#else
FILE *f;
Index: src/utils/utils.h
--- src/utils/utils.h.orig 2012-06-03 13:15:30.000000000 +0200
+++ src/utils/utils.h 2012-06-05 10:18:47.000000000 +0200
@@ -24,6 +24,7 @@
#include <windef.h>
#endif
+#include <stdio.h>
#include <regex.h>
#include <sys/types.h> /* mode_t */