Blame gcl-2.6.8-getcwd.patch
|
|
7fc6c88 |
--- o/unixfsys.c.orig 2010-12-29 11:52:55.301247671 -0700
|
|
|
7fc6c88 |
+++ o/unixfsys.c 2010-12-29 11:58:52.389645190 -0700
|
|
|
7fc6c88 |
@@ -150,17 +150,6 @@ DEV_FOUND:
|
|
|
e6a2505 |
#endif
|
|
|
e6a2505 |
|
|
|
7fc6c88 |
|
|
|
e6a2505 |
-#ifdef HAVE_GETCWD
|
|
|
e6a2505 |
-char *
|
|
|
7fc6c88 |
-getwd(char *buffer) {
|
|
|
e6a2505 |
-#ifndef _WIN32
|
|
|
7fc6c88 |
- char *getcwd(char *, size_t);
|
|
|
e6a2505 |
-#endif
|
|
|
7fc6c88 |
- return(getcwd(buffer, MAXPATHLEN));
|
|
|
e6a2505 |
-}
|
|
|
e6a2505 |
-#endif
|
|
|
e6a2505 |
-
|
|
|
7fc6c88 |
-
|
|
|
7fc6c88 |
#define pcopy(a_,b_,c_,d_) ({\
|
|
|
7fc6c88 |
unsigned _c=c_,_d=d_;\
|
|
|
7fc6c88 |
if (_c+_d>=MAXPATHLEN-16) FEerror("Can't expand pathname ~a",1,namestring);\
|