* lib/unlocked-io.h (getc): Fix misspelling of ‘getc_unlocked’.
---
 ChangeLog         | 5 +++++
 lib/unlocked-io.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index a0e6b79f90..0583de6730 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-08-21  Paul Eggert  <[email protected]>
+
+       unlocked-io: fix getc_unlocked typo
+       * lib/unlocked-io.h (getc): Fix misspelling of ‘getc_unlocked’.
+
 2023-08-21  Bruno Haible  <[email protected]>
 
        alignasof, stdalign: Fix a compilation error in C++ mode on FreeBSD 12.
diff --git a/lib/unlocked-io.h b/lib/unlocked-io.h
index 4830df4a74..6d2cbf11c3 100644
--- a/lib/unlocked-io.h
+++ b/lib/unlocked-io.h
@@ -101,7 +101,7 @@
 #  define fwrite_unlocked(w,x,y,z) fwrite (w,x,y,z)
 # endif
 
-# if HAVE_DECL_GETC_UNLOCKED || defined get_unlocked
+# if HAVE_DECL_GETC_UNLOCKED || defined getc_unlocked
 #  undef getc
 #  define getc(x) getc_unlocked (x)
 # else
-- 
2.41.0


Reply via email to