diff options
| author | Paul Eggert | 2011-03-14 16:31:21 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-14 16:31:21 -0700 |
| commit | 15dfd3d9d66e43270f6ba506a7333bdc409a1ea9 (patch) | |
| tree | da2c5f5312070778770289e1dff7bfdb90cbbd46 | |
| parent | edced198e35ccd2ab81797988705597da3fc3e19 (diff) | |
| download | emacs-15dfd3d9d66e43270f6ba506a7333bdc409a1ea9.tar.gz emacs-15dfd3d9d66e43270f6ba506a7333bdc409a1ea9.zip | |
* sysdep.c (MAXPATHLEN): Define only if needed.
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/sysdep.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index efc238cc078..0a6b29a006c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | Fix pointer signedness issue. | 4 | Fix pointer signedness issue. |
| 5 | (sys_subshell): Mark local as volatile if checking for lint, | 5 | (sys_subshell): Mark local as volatile if checking for lint, |
| 6 | to suppress a gcc -Wclobbered warning that does not seem to be right. | 6 | to suppress a gcc -Wclobbered warning that does not seem to be right. |
| 7 | (MAXPATHLEN): Define only if needed. | ||
| 7 | 8 | ||
| 8 | * process.c (serial_open, serial_configure): Move decls from here ... | 9 | * process.c (serial_open, serial_configure): Move decls from here ... |
| 9 | * systty.h: ... to here, so that they can be checked. | 10 | * systty.h: ... to here, so that they can be checked. |
diff --git a/src/sysdep.c b/src/sysdep.c index 1c49b2a3387..6ef3d88c5c8 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1886,13 +1886,13 @@ emacs_write (int fildes, const char *buf, unsigned int nbyte) | |||
| 1886 | * under error conditions. | 1886 | * under error conditions. |
| 1887 | */ | 1887 | */ |
| 1888 | 1888 | ||
| 1889 | #ifndef HAVE_GETWD | ||
| 1890 | |||
| 1889 | #ifndef MAXPATHLEN | 1891 | #ifndef MAXPATHLEN |
| 1890 | /* In 4.1, param.h fails to define this. */ | 1892 | /* In 4.1, param.h fails to define this. */ |
| 1891 | #define MAXPATHLEN 1024 | 1893 | #define MAXPATHLEN 1024 |
| 1892 | #endif | 1894 | #endif |
| 1893 | 1895 | ||
| 1894 | #ifndef HAVE_GETWD | ||
| 1895 | |||
| 1896 | char * | 1896 | char * |
| 1897 | getwd (char *pathname) | 1897 | getwd (char *pathname) |
| 1898 | { | 1898 | { |