]> git.ipfire.org Git - thirdparty/coreutils.git/commit
save-cwd.c: Include "save-cwd.h" before other include files.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Dec 2004 06:25:03 +0000 (06:25 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Dec 2004 06:25:03 +0000 (06:25 +0000)
commitf2173447ba3972a35e0241e4e496520e1c4a7c60
tree45237354742803032729b19be4e8f1c933b0b423
parent2da62dbe9ab48896948024e4016c772cafa6685b
save-cwd.c: Include "save-cwd.h" before other include files.
(O_DIRECTORY): Remove; not needed here, since "." must be
a directory.  All uses removed.
(save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
universal on Suns, and we also need to test for IRIX.
Revamp code to use 'if' rather than '#if'.
Avoid unnecessary comparison of cwd->desc to 0.
lib/save-cwd.c