Line 0
Link Here
|
|
|
1 |
--- FileNom.c.orig |
2 |
+++ FileNom.c |
3 |
@@ -377,6 +377,13 @@ ClassInitialize() |
4 |
CLASS(selectTranslations) = XtParseTranslationTable(selectTranslations); |
5 |
} |
6 |
|
7 |
+#if defined(SYSV) || defined(__linux__) || defined(__FreeBSD__) |
8 |
+ extern char *getcwd(); |
9 |
+#define getwd(buf) getcwd(buf,MAXPATHLEN) |
10 |
+#else |
11 |
+ extern char *getwd(); |
12 |
+#endif |
13 |
+ |
14 |
/* ARGSUSED */ |
15 |
static void |
16 |
Initialize(req, new, args, num_args) |
17 |
@@ -391,13 +398,6 @@ Initialize(req, new, args, num_args) |
18 |
String dir, menuList, p, q; |
19 |
Dimension width, height; |
20 |
|
21 |
-#ifdef SYSV |
22 |
- extern char *getcwd(); |
23 |
-#define getwd(buf) getcwd(buf,MAXPATHLEN) |
24 |
-#else |
25 |
- extern char *getwd(); |
26 |
-#endif |
27 |
- |
28 |
List(new) = NULL; |
29 |
Nomination(new).directoryPart = NULL; |
30 |
Nomination(new).filenamePart = NULL; |