summaryrefslogtreecommitdiff
path: root/x11/kdelibs3/patches/patch-aq
blob: 671722c7ebc71366f1d41e05284999d839ac3497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-aq,v 1.9 2005/12/11 10:53:54 markd Exp $

--- kdecore/ktimezones.cpp.orig	2005-10-11 04:06:02.000000000 +1300
+++ kdecore/ktimezones.cpp
@@ -372,7 +372,13 @@ const KTimezones::ZoneMap KTimezones::al
     // For Unix its all easy except knowing where to look. Try the LSB location first.
     QFile f;
     m_zoneinfoDir = "/usr/share/zoneinfo";
+#ifndef __NetBSD__
     f.setName(m_zoneinfoDir + "/zone.tab");
+#else
+    // NetBSD doesn't have a zone.tab in its zoneinfo dir so point at
+    // one the package installs
+    f.setName("@LOCALBASE@/share/zone.tab");
+#endif
     if (!f.open(IO_ReadOnly))
     {
         kdDebug() << "Can't open " << f.name() << endl;