File: getcwd

package info (click to toggle)
pixmap 2.6.6-1
  • links: PTS
  • area: main
  • in suites: bookworm, sid
  • size: 1,316 kB
  • sloc: ansic: 12,766; makefile: 74
file content (31 lines) | stat: -rw-r--r-- 1,038 bytes parent folder | download
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
27
28
29
30
31
Description: force use of getcwd(), not getwd()
 Use defined(linux) to force use of getcwd(), not getwd() which is deprecated.
 .
 pixmap (2.6.6-1) UNRELEASED; urgency=medium
 .
   * New upstream version.
Author: Paul Slootman <paul@debian.org>

---
Last-Update: 2021-11-23

--- pixmap-2.6.6.orig/SelFile/SelFile.c
+++ pixmap-2.6.6/SelFile/SelFile.c
@@ -70,7 +70,7 @@ extern char *sys_errlist[];
 #define MAXPATHLEN 1024
 #endif /* ndef MAXPATHLEN */
 
-#if !defined(SVR4) && !defined(SYSV) && !defined(USG)
+#if !defined(SVR4) && !defined(SYSV) && !defined(USG) && !defined(linux)
 extern char *getwd();
 #endif /* !defined(SVR4) && !defined(SYSV) && !defined(USG) */
 
@@ -697,7 +698,7 @@ XsraSelFile(toplevel, prompt, ok, cancel
 	SFpositionWidget(selFile);
 	XtMapWidget(selFile);
 
-#if defined(SVR4) || defined(SYSV) || defined(USG)
+#if defined(SVR4) || defined(SYSV) || defined(USG) || defined(linux)
 	if (!getcwd(SFstartDir, MAXPATHLEN)) {
 #else /* defined(SVR4) || defined(SYSV) || defined(USG) */
 	if (!getwd(SFstartDir)) {