summaryrefslogtreecommitdiff
path: root/stdio-common/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/Makefile')
-rw-r--r--stdio-common/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index 7fe1987158..4b9ec71338 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -33,6 +33,11 @@ routines := \
tmpfile tmpnam tempnam tempname \
getline getw putw \
remove rename
+
+ifneq (,$(filter %REENTRANT, $(defines)))
+routines += lockfile
+endif
+
aux := errlist siglist
distribute := _itoa.h printf-parse.h