diff options
Diffstat (limited to 'gl/unlocked-io.h')
| -rw-r--r-- | gl/unlocked-io.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gl/unlocked-io.h b/gl/unlocked-io.h index 69ea6641..2b0d13e3 100644 --- a/gl/unlocked-io.h +++ b/gl/unlocked-io.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Prefer faster, non-thread-safe stdio functions if available. | 1 | /* Prefer faster, non-thread-safe stdio functions if available. |
| 2 | 2 | ||
| 3 | Copyright (C) 2001-2004, 2009-2025 Free Software Foundation, Inc. | 3 | Copyright (C) 2001-2004, 2009-2026 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 5 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
| @@ -73,6 +73,13 @@ | |||
| 73 | # define fgets_unlocked(x,y,z) fgets (x,y,z) | 73 | # define fgets_unlocked(x,y,z) fgets (x,y,z) |
| 74 | # endif | 74 | # endif |
| 75 | 75 | ||
| 76 | # if HAVE_DECL_FILENO_UNLOCKED || defined fileno_unlocked | ||
| 77 | # undef fileno | ||
| 78 | # define fileno(x) fileno_unlocked (x) | ||
| 79 | # else | ||
| 80 | # define fileno_unlocked(x) fileno (x) | ||
| 81 | # endif | ||
| 82 | |||
| 76 | # if HAVE_DECL_FPUTC_UNLOCKED || defined fputc_unlocked | 83 | # if HAVE_DECL_FPUTC_UNLOCKED || defined fputc_unlocked |
| 77 | # undef fputc | 84 | # undef fputc |
| 78 | # define fputc(x,y) fputc_unlocked (x,y) | 85 | # define fputc(x,y) fputc_unlocked (x,y) |
