summaryrefslogtreecommitdiff
path: root/graphics/xfig/patches/patch-ac
blob: 955fa20b9d7634156b30d521cf2c89c02857d6d5 (plain)
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
32
$NetBSD: patch-ac,v 1.4 2003/01/07 06:30:36 rh Exp $

--- f_util.c.orig	Mon Dec  2 17:05:47 2002
+++ f_util.c
@@ -111,15 +111,15 @@
 get_directory(direct)
     char	   *direct;
 {
-#if defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE)
+#if defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) || defined(__NetBSD__)
     extern char	   *getcwd();
 
 #else
     extern char	   *getwd();
 
-#endif /* defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) */
+#endif /* defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) || defined(__NetBSD__) */
 
-#if defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE)
+#if defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) || defined(__NetBSD__)
     if (getcwd(direct, PATH_MAX) == NULL) {	/* get current working dir */
 	put_msg("Can't get current directory");
 	beep();
@@ -127,7 +127,7 @@
     if (getwd(direct) == NULL) {		/* get current working dir */
 	put_msg("%s", direct);			/* err msg is in directory */
 	beep();
-#endif /* defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) */
+#endif /* defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) || defined(__NetBSD__) */
 	*direct = '\0';
 	return 0;
     }