Fresh pull from upstream
[librecmc/librecmc.git] / toolchain / musl / patches / 031-add-missing-unlocked-and-wcsftime_l-prototypes-to-wchar-header.patch
1 From 5505f6afae9acf37ef565c68a07ca3df7b1ae2cb Mon Sep 17 00:00:00 2001
2 From: Daniel Sabogal <dsabogalcc@gmail.com>
3 Date: Fri, 9 Sep 2016 21:23:17 -0400
4 Subject: add missing *_unlocked and wcsftime_l prototypes to wchar.h
5
6 these functions had been implemented, but prototypes were not made available
7 ---
8  include/wchar.h | 15 +++++++++++++++
9  1 file changed, 15 insertions(+)
10
11 diff --git a/include/wchar.h b/include/wchar.h
12 index 0167dce..3e6db5f 100644
13 --- a/include/wchar.h
14 +++ b/include/wchar.h
15 @@ -136,6 +136,21 @@ size_t wcsftime (wchar_t *__restrict, size_t, const wchar_t *__restrict, const s
16  
17  #undef iswdigit
18  
19 +#if defined(_GNU_SOURCE)
20 +wint_t fgetwc_unlocked (FILE *);
21 +wint_t getwc_unlocked (FILE *);
22 +wint_t getwchar_unlocked (void);
23 +wint_t fputwc_unlocked (wchar_t, FILE *);
24 +wint_t putwc_unlocked (wchar_t, FILE *);
25 +wint_t putwchar_unlocked (wchar_t);
26 +wchar_t *fgetws_unlocked (wchar_t *__restrict, int, FILE *__restrict);
27 +int fputws_unlocked (const wchar_t *__restrict, FILE *__restrict);
28 +#endif
29 +
30 +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
31 +size_t wcsftime_l (wchar_t *__restrict, size_t, const wchar_t *__restrict, const struct tm *__restrict, locale_t);
32 +#endif
33 +
34  #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
35   || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)  || defined(_BSD_SOURCE)
36  FILE *open_wmemstream(wchar_t **, size_t *);
37 -- 
38 cgit v0.11.2