diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-10-04 20:18:43 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-10-04 20:18:43 +0000 |
commit | 1cc46fbf537a89aa60128e84b5973a831221220d (patch) | |
tree | 4c930d113bc9fdd3180197fe438900e569423775 /lib/readutmp.c | |
parent | be1d0e7285afc1084b86b50ab64e86eb5bb9bb3d (diff) | |
download | coreutils-1cc46fbf537a89aa60128e84b5973a831221220d.tar.xz |
Sync from gnulib, to remove dependencies of other modules on unlocked-io.
Diffstat (limited to 'lib/readutmp.c')
-rw-r--r-- | lib/readutmp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/readutmp.c b/lib/readutmp.c index 91d341a96..ed5889308 100644 --- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -27,9 +27,12 @@ #include <stdlib.h> #include "readutmp.h" -#include "unlocked-io.h" #include "xalloc.h" +#if USE_UNLOCKED_IO +# include "unlocked-io.h" +#endif + /* Copy UT->ut_name into storage obtained from malloc. Then remove any trailing spaces from the copy, NUL terminate it, and return the copy. */ |