summaryrefslogtreecommitdiff
path: root/lib/readtokens.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-10-04 20:18:43 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-10-04 20:18:43 +0000
commit1cc46fbf537a89aa60128e84b5973a831221220d (patch)
tree4c930d113bc9fdd3180197fe438900e569423775 /lib/readtokens.c
parentbe1d0e7285afc1084b86b50ab64e86eb5bb9bb3d (diff)
downloadcoreutils-1cc46fbf537a89aa60128e84b5973a831221220d.tar.xz
Sync from gnulib, to remove dependencies of other modules on unlocked-io.
Diffstat (limited to 'lib/readtokens.c')
-rw-r--r--lib/readtokens.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/readtokens.c b/lib/readtokens.c
index 2ccf6a938..9fb611db1 100644
--- a/lib/readtokens.c
+++ b/lib/readtokens.c
@@ -32,9 +32,12 @@
#include <string.h>
#include <stdbool.h>
-#include "unlocked-io.h"
#include "xalloc.h"
+#if USE_UNLOCKED_IO
+# include "unlocked-io.h"
+#endif
+
#define STREQ(a,b) ((a) == (b) || ((a) && (b) && *(a) == *(b) \
&& strcmp(a, b) == 0))