diff options
Diffstat (limited to 'misc/celestia/patches/patch-ac')
-rw-r--r-- | misc/celestia/patches/patch-ac | 47 |
1 files changed, 19 insertions, 28 deletions
diff --git a/misc/celestia/patches/patch-ac b/misc/celestia/patches/patch-ac index 0f33db57dbb..b89e3c01547 100644 --- a/misc/celestia/patches/patch-ac +++ b/misc/celestia/patches/patch-ac @@ -1,31 +1,22 @@ -$NetBSD: patch-ac,v 1.3 2004/11/16 14:34:39 adam Exp $ +$NetBSD: patch-ac,v 1.4 2006/02/17 23:46:39 adam Exp $ ---- src/celestia/kde/celestialbrowser.cpp.orig 2004-11-15 17:03:29.000000000 +0000 -+++ src/celestia/kde/celestialbrowser.cpp -@@ -138,7 +138,7 @@ void CelestialBrowser::slotRefresh() - QString starClass(buf); +--- config.h.in.orig 2006-02-15 22:53:21.000000000 +0100 ++++ config.h.in +@@ -248,7 +248,7 @@ int res_init(void); - CelListViewItem *starItem = new CelListViewItem(listStars, QString(name), -- QString::fromUtf8(ReplaceGreekLetterAbbr(name).c_str()), dist, appMag, absMag, starClass); -+ QString(name), dist, appMag, absMag, starClass); - - SolarSystemCatalog::iterator iter = solarSystemCatalog->find(star->getCatalogNumber()); - if (iter != solarSystemCatalog->end()) -@@ -156,7 +156,7 @@ void CelestialBrowser::slotRefresh() - sprintf(buf, " %.2f au", starBodyDist / KM_PER_AU); - QString distStarBody(buf); - -- CelListViewItem *planetItem = new CelListViewItem(starItem, QString(body->getName()), -+ CelListViewItem *planetItem = new CelListViewItem(starItem, QString(body->getName().c_str()), - QString::fromUtf8(body->getName().c_str()), - distStarBody, "", "", getClassification(body->getClassification())); - -@@ -173,7 +173,7 @@ void CelestialBrowser::slotRefresh() - sprintf(buf, " %.0f km", bodySatDist); - QString distBodySat(buf); - -- new CelListViewItem(planetItem, QString(sat->getName()), -+ new CelListViewItem(planetItem, QString(sat->getName().c_str()), - QString::fromUtf8(sat->getName().c_str()), - distBodySat, "", "", getClassification(sat->getClassification())); + +-#if !defined(HAVE_STRLCAT_PROTO) ++#if !defined(HAVE_STRLCAT_PROTO) && defined(KDELIBSUFF) + #ifdef __cplusplus + extern "C" { + #endif +@@ -260,7 +260,7 @@ unsigned long strlcat(char*, const char* + + + +-#if !defined(HAVE_STRLCPY_PROTO) ++#if !defined(HAVE_STRLCPY_PROTO) && defined(KDELIBSUFF) + #ifdef __cplusplus + extern "C" { + #endif |