diff options
| author | Eli Zaretskii | 2011-04-06 19:05:49 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2011-04-06 19:05:49 +0300 |
| commit | 973f782d33cb0b9fa6caf5487ca8916838d12556 (patch) | |
| tree | 9b06c3251b3f31749936782214926a9c86bb9699 /src | |
| parent | 0f1ba050b3e8228b47e77ec77e5047c7c3276fdf (diff) | |
| download | emacs-973f782d33cb0b9fa6caf5487ca8916838d12556.tar.gz emacs-973f782d33cb0b9fa6caf5487ca8916838d12556.zip | |
Don't call gnulib's careadlinkat on Windows.
src/w32.c (careadlinkat, careadlinkatcwd): New always-fail stubs.
lib/makefile.w32-in ($(BLD)/careadlinkat.$(O), GNULIBOBJS):
Revert last change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/w32.c | 25 |
2 files changed, 27 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4c852723595..240fd8fb9a7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-04-06 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32.c (careadlinkat, careadlinkatcwd): New always-fail stubs. | ||
| 4 | |||
| 1 | 2011-04-06 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2011-04-06 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | Fix more problems found by GCC 4.6.0's static checks. | 7 | Fix more problems found by GCC 4.6.0's static checks. |
| @@ -138,6 +138,9 @@ typedef struct _PROCESS_MEMORY_COUNTERS_EX { | |||
| 138 | #include "dispextern.h" /* for xstrcasecmp */ | 138 | #include "dispextern.h" /* for xstrcasecmp */ |
| 139 | #include "coding.h" /* for Vlocale_coding_system */ | 139 | #include "coding.h" /* for Vlocale_coding_system */ |
| 140 | 140 | ||
| 141 | #include "careadlinkat.h" | ||
| 142 | #include "allocator.h" | ||
| 143 | |||
| 141 | /* For serial_configure and serial_open. */ | 144 | /* For serial_configure and serial_open. */ |
| 142 | #include "process.h" | 145 | #include "process.h" |
| 143 | 146 | ||
| @@ -3610,8 +3613,8 @@ utime (const char *name, struct utimbuf *times) | |||
| 3610 | } | 3613 | } |
| 3611 | 3614 | ||
| 3612 | 3615 | ||
| 3613 | /* Symlink-related functions that always fail. Used in fileio.c to | 3616 | /* Symlink-related functions that always fail. Used in fileio.c and in |
| 3614 | avoid #ifdef's. */ | 3617 | sysdep.c to avoid #ifdef's. */ |
| 3615 | int | 3618 | int |
| 3616 | symlink (char const *dummy1, char const *dummy2) | 3619 | symlink (char const *dummy1, char const *dummy2) |
| 3617 | { | 3620 | { |
| @@ -3628,6 +3631,24 @@ readlink (const char *name, char *dummy1, size_t dummy2) | |||
| 3628 | return -1; | 3631 | return -1; |
| 3629 | } | 3632 | } |
| 3630 | 3633 | ||
| 3634 | char * | ||
| 3635 | careadlinkat (int fd, char const *filename, | ||
| 3636 | char *buffer, size_t buffer_size, | ||
| 3637 | struct allocator const *alloc, | ||
| 3638 | ssize_t (*preadlinkat) (int, char const *, char *, size_t)) | ||
| 3639 | { | ||
| 3640 | errno = ENOSYS; | ||
| 3641 | return NULL; | ||
| 3642 | } | ||
| 3643 | |||
| 3644 | ssize_t | ||
| 3645 | careadlinkatcwd (int fd, char const *filename, char *buffer, | ||
| 3646 | size_t buffer_size) | ||
| 3647 | { | ||
| 3648 | (void) fd; | ||
| 3649 | return readlink (filename, buffer, buffer_size); | ||
| 3650 | } | ||
| 3651 | |||
| 3631 | 3652 | ||
| 3632 | /* Support for browsing other processes and their attributes. See | 3653 | /* Support for browsing other processes and their attributes. See |
| 3633 | process.c for the Lisp bindings. */ | 3654 | process.c for the Lisp bindings. */ |