Репозитории ALT
S: | 2.4.1-alt5.1 |
5.1: | 2.4.1-alt3.3.1 |
4.1: | 2.4.1-alt2 |
4.0: | 2.4.1-alt2 |
3.0: | 2.4.1-alt1 |
Группа :: Графика
Пакет: xtexcad
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: xtexcad-2.4-getcwd.patch
Скачать
Скачать
--- FileNom.c
+++ FileNom.c 2006-11-09 17:06:32.000000000 +0100
@@ -377,6 +377,13 @@ ClassInitialize()
CLASS(selectTranslations) = XtParseTranslationTable(selectTranslations);
}
+#if defined(SYSV) || defined(__linux__)
+ extern char *getcwd();
+#define getwd(buf) getcwd(buf,MAXPATHLEN)
+#else
+ extern char *getwd();
+#endif
+
/* ARGSUSED */
static void
Initialize(req, new, args, num_args)
@@ -391,13 +398,6 @@ Initialize(req, new, args, num_args)
String dir, menuList, p, q;
Dimension width, height;
-#ifdef SYSV
- extern char *getcwd();
-#define getwd(buf) getcwd(buf,MAXPATHLEN)
-#else
- extern char *getwd();
-#endif
-
List(new) = NULL;
Nomination(new).directoryPart = NULL;
Nomination(new).filenamePart = NULL;