aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorJuanma Barranquero2010-07-25 05:36:54 +0200
committerJuanma Barranquero2010-07-25 05:36:54 +0200
commit35a7804dae480ba540f77f4431d2327275357d0f (patch)
tree642ca885b49a7f2cbd7587fefade265c8e72b5d2 /lib-src
parent361358ea12271d5d747773a2d1ba743ee9516745 (diff)
downloademacs-35a7804dae480ba540f77f4431d2327275357d0f.tar.gz
emacs-35a7804dae480ba540f77f4431d2327275357d0f.zip
* emacsclient.c (getcwd): Fix previous change.
Make getcwd conditional on HAVE_GETCWD and declare with the correct POSIX profile (for some reason MinGW headers define its 2nd arg as int, not size_t; but getcwd is not used on Windows nonetheless).
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog7
-rw-r--r--lib-src/emacsclient.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 09d139019e8..d0ab1087aa9 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,5 +1,12 @@
12010-07-25 Juanma Barranquero <lekktu@gmail.com> 12010-07-25 Juanma Barranquero <lekktu@gmail.com>
2 2
3 * emacsclient.c (getcwd): Fix previous change: make getcwd
4 conditional on HAVE_GETCWD and declare with the correct POSIX
5 profile (for some reason MinGW headers define its 2nd arg as int,
6 not size_t; but getcwd is not used on Windows nonetheless).
7
82010-07-25 Juanma Barranquero <lekktu@gmail.com>
9
3 * emacsclient.c (getcwd, w32_getenv): 10 * emacsclient.c (getcwd, w32_getenv):
4 * ntlib.h (getlogin, getuid, getegid, getgid): Fix prototypes. 11 * ntlib.h (getlogin, getuid, getegid, getgid): Fix prototypes.
5 12
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 39b5956741d..1ca9b793f3a 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -82,7 +82,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
82 82
83 83
84char *getenv (const char *), *getwd (char *); 84char *getenv (const char *), *getwd (char *);
85char *(getcwd) (char *, int); 85#ifdef HAVE_GETCWD
86char *(getcwd) (char *, size_t);
87#endif
86 88
87#ifdef WINDOWSNT 89#ifdef WINDOWSNT
88char *w32_getenv (char *); 90char *w32_getenv (char *);