summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--xml.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d738559..f79b9da 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,10 @@ SFEED_CFLAGS = ${CFLAGS}
SFEED_LDFLAGS = ${LDFLAGS}
SFEED_CPPFLAGS = -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
+# uncomment for convervative locked I/O.
+#SFEED_CPPFLAGS = -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE \
+# -DGETNEXT=getchar
+
BIN = \
sfeed\
sfeed_atom\
diff --git a/xml.h b/xml.h
index 7b6bd35..ad53396 100644
--- a/xml.h
+++ b/xml.h
@@ -24,7 +24,7 @@ typedef struct xmlparser {
#ifndef GETNEXT
/* GETNEXT overridden to reduce function call overhead and further
context optimizations. */
- #define GETNEXT getchar
+ #define GETNEXT getchar_unlocked
#endif
/* current tag */