]> git.armaanb.net Git - asd-repo.git/blob - extra/chromium/patches/musl-sync.patch
Switch browser to Chromium
[asd-repo.git] / extra / chromium / patches / musl-sync.patch
1 diff --git a/third_party/libsync/src/include/sync/sync.h b/third_party/libsync/src/include/sync/sync.h
2 index 50ed0ac..bc9d567 100644
3 --- a/third_party/libsync/src/include/sync/sync.h
4 +++ b/third_party/libsync/src/include/sync/sync.h
5 @@ -19,12 +19,16 @@
6  #ifndef __SYS_CORE_SYNC_H
7  #define __SYS_CORE_SYNC_H
8  
9 +#if defined(__GLIBC__)
10  #include <sys/cdefs.h>
11 +#endif
12  #include <stdint.h>
13  
14  #include <linux/types.h>
15  
16 -__BEGIN_DECLS
17 +#ifdef __cplusplus
18 +extern "C" {
19 +#endif
20  
21  struct sync_legacy_merge_data {
22   int32_t fd2;
23 @@ -158,6 +162,8 @@ struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info,
24                                    struct sync_pt_info *itr);
25  void sync_fence_info_free(struct sync_fence_info_data *info);
26  
27 -__END_DECLS
28 +#ifdef __cplusplus
29 +}
30 +#endif
31  
32  #endif /* __SYS_CORE_SYNC_H */