summaryrefslogtreecommitdiff
path: root/sysutils/gworkspace/patches/patch-ab
blob: e60820ec122b07fc7482f2a46db14a5ee9f60cb3 (plain)
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
$NetBSD: patch-ab,v 1.4 2005/05/02 06:35:55 rh Exp $

--- GWorkspace/Preferences/VolumesPref.m.orig	2005-01-18 01:07:39.000000000 +1000
+++ GWorkspace/Preferences/VolumesPref.m
@@ -26,6 +26,7 @@
 #include <AppKit/AppKit.h>
 #include "VolumesPref.h"
 #include "FSNodeRep.h"
+#include <sys/param.h>
 
 #define CHECKSIZE(sz) \
 if (sz.width < 0) sz.width = 0; \
@@ -64,11 +65,13 @@ static NSString *nibName = @"VolumesPref
       
       if (mtabpath == nil) {
         mtabpath = @"/etc/mtab";
+#if (!defined(BSD) || BSD < 199306)
         NSRunAlertPanel(nil, 
                NSLocalizedString(@"The mtab path is not set. Using default value.", @""), 
                NSLocalizedString(@"OK", @""), 
                nil, 
                nil);                                     
+#endif
       }
 
       [mtabField setStringValue: mtabpath];