diff options
Diffstat (limited to 'gdb/common/common-defs.h')
-rw-r--r-- | gdb/common/common-defs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index eb0ec21..80f1ff4 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -105,4 +105,13 @@ /* String containing the current directory (what getwd would return). */ extern char *current_directory; +/* sbrk on macOS is not useful for our purposes, since sbrk(0) always + returns the same value. brk/sbrk on macOS is just an emulation + that always returns a pointer to a 4MB section reserved for + that. */ + +#if defined (HAVE_SBRK) && !__APPLE__ +#define HAVE_USEFUL_SBRK 1 +#endif + #endif /* COMMON_DEFS_H */ |