diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-01-16 23:49:21 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-01-16 23:49:21 +0100 |
commit | f0007cade095c5a2878ebbb8ea8c9b40810e4509 (patch) | |
tree | cc6c2631aea42ba8ab20d26701dae099348b5b43 /lib/same-inode.h | |
parent | ad17b1551241a0fbaa9f9557016cbe440cc6338b (diff) | |
download | guile-f0007cade095c5a2878ebbb8ea8c9b40810e4509.tar.gz |
Update Gnulib to v0.0-6827-g39c3009; use the `dirfd' module.
* m4/gnulib-cache.m4: Use `dirfd'.
* libguile/filesys.c: Include Gnulib's <dirent.h> directly.
(dirfd): Remove. Suggested by Bruno Haible <bruno@clisp.org>.
Diffstat (limited to 'lib/same-inode.h')
-rw-r--r-- | lib/same-inode.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/same-inode.h b/lib/same-inode.h index e89cb539a..7ce286d66 100644 --- a/lib/same-inode.h +++ b/lib/same-inode.h @@ -1,6 +1,6 @@ /* Determine whether two stat buffers refer to the same file. - Copyright (C) 2006, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2006, 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -18,8 +18,16 @@ #ifndef SAME_INODE_H # define SAME_INODE_H 1 -# define SAME_INODE(Stat_buf_1, Stat_buf_2) \ - ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \ - && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev) +# ifdef __VMS +# define SAME_INODE(a, b) \ + ((a).st_ino[0] == (b).st_ino[0] \ + && (a).st_ino[1] == (b).st_ino[1] \ + && (a).st_ino[2] == (b).st_ino[2] \ + && (a).st_dev == (b).st_dev) +# else +# define SAME_INODE(a, b) \ + ((a).st_ino == (b).st_ino \ + && (a).st_dev == (b).st_dev) +# endif #endif |