summaryrefslogtreecommitdiff
path: root/sysutils/swapd/files/patch-configure
blob: d8d0259f1786f7ac28fac15d1db62f253c07268d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- configure.orig	2013-10-06 16:11:43 UTC
+++ configure
@@ -4850,6 +4850,7 @@ fi
 for ac_func in swapoff
 do :
   ac_fn_c_check_func "$LINENO" "swapoff" "ac_cv_func_swapoff"
+ac_cv_func_swapoff=no
 if test "x$ac_cv_func_swapoff" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_SWAPOFF 1
@@ -4861,6 +4862,7 @@ done
 
 
 	ac_fn_c_check_func "$LINENO" "swapon" "ac_cv_func_swapon"
+ac_cv_func_swapon=no
 if test "x$ac_cv_func_swapon" = xyes; then :
 
 
@@ -5114,6 +5116,17 @@ $as_echo "#define SWAPD_SWAP_PERMS 01600
 $as_echo "#define SWAPD_SWAPOFF_CMDLINE \"/sbin/swapctl -d \\\"%s\\\"\"" >>confdefs.h
 
 			;;
+		freebsd*)
+
+cat >>confdefs.h <<\_ACEOF
+#define SWAPD_SWAPON_CMDLINE "/usr/local/sbin/swapd_swapon \"%s\""
+_ACEOF
+
+cat >>confdefs.h <<\_ACEOF
+#define SWAPD_SWAPOFF_CMDLINE "/usr/local/sbin/swapd_swapoff \"%s\""
+_ACEOF
+
+			;;
 	esac