From 2482d63c7d6f42a324b6fd39c46bf574b9f6f4d2 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Fri, 1 Apr 2011 09:38:20 +0000 Subject: - Add patch to determine heap size Reported by: Seva Fwd --- java/netbeans/files/patch-bin_netbeans | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 java/netbeans/files/patch-bin_netbeans (limited to 'java/netbeans') diff --git a/java/netbeans/files/patch-bin_netbeans b/java/netbeans/files/patch-bin_netbeans new file mode 100644 index 000000000000..bfac0afb13fe --- /dev/null +++ b/java/netbeans/files/patch-bin_netbeans @@ -0,0 +1,13 @@ +--- bin/netbeans.orig 2011-04-01 09:49:45.000000000 +0200 ++++ bin/netbeans 2011-04-01 09:51:07.000000000 +0200 +@@ -131,6 +131,10 @@ + mem=`/usr/sbin/sysctl hw.memsize | tr -d [:alpha:][:space:].:` + mem=`expr $mem / 1048576` + ;; ++ FreeBSD*) ++ mem=`/sbin/sysctl -n hw.realmem` ++ mem=`expr $mem / 1048576` ++ ;; + *) + ;; + esac -- cgit v1.2.3