treat empty TZ environment variable as GMT rather than default
[musl] / arch / sh / src / __unmapself.c
1 #include "pthread_impl.h"
2
3 void __unmapself_sh_mmu(void *, size_t);
4 void __unmapself_sh_nommu(void *, size_t);
5
6 #if !defined(__SH3__) && !defined(__SH4__)
7 #define __unmapself __unmapself_sh_nommu
8 #include "../../../src/thread/__unmapself.c"
9 #undef __unmapself
10 extern __attribute__((__visibility__("hidden"))) unsigned __sh_nommu;
11 #else
12 #define __sh_nommu 0
13 #endif
14
15 void __unmapself(void *base, size_t size)
16 {
17         if (__sh_nommu) __unmapself_sh_nommu(base, size);
18         else __unmapself_sh_mmu(base, size);
19 }