diff options
| author | forsyth <forsyth@vitanuova.com> | 2011-06-29 15:15:08 +0100 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2011-06-29 15:15:08 +0100 |
| commit | 6b2e32351192dd10dd3d671e2b61608c692507e6 (patch) | |
| tree | 82f17976ee34dd2ad73477efdefccb46d6f85ec2 /Linux/arm/include/lib9.h | |
| parent | c594916b7a30516eff15698d7cc1f8e440a55a3d (diff) | |
20110629-1515
Diffstat (limited to 'Linux/arm/include/lib9.h')
| -rw-r--r-- | Linux/arm/include/lib9.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Linux/arm/include/lib9.h b/Linux/arm/include/lib9.h index c76ef660..b3ed6a33 100644 --- a/Linux/arm/include/lib9.h +++ b/Linux/arm/include/lib9.h @@ -6,6 +6,9 @@ #define _LARGEFILE_SOURCE 1 #define _LARGEFILE64_SOURCE 1 #define _FILE_OFFSET_BITS 64 +#ifdef USE_PTHREADS +#define _REENTRANT 1 +#endif #include <features.h> #include <sys/types.h> #include <stdlib.h> @@ -256,7 +259,7 @@ extern vlong osnsec(void); extern void _assert(char*); extern double charstod(int(*)(void*), void*); extern char* cleanname(char*); -//extern ulong getcallerpc(void*); +//extern uintptr getcallerpc(void*); extern int getfields(char*, char**, int, int, char*); extern char* getuser(void); extern char* getwd(char*, int); @@ -455,7 +458,7 @@ extern char *argv0; #define setbinmode() /* need the inline because the link register is not saved in a known location */ -static __inline ulong getcallerpc(void* dummy) { +static __inline uintptr getcallerpc(void* dummy) { ulong lr; __asm__( "mov %0, %%lr;" : "=r" (lr) |
