summaryrefslogtreecommitdiff
path: root/xmalloc.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2020-09-09 15:25:32 -0400
committerChet Ramey <chet.ramey@case.edu>2020-09-09 15:25:32 -0400
commit3eb0018e75b74bb886df7fba4b1712529ce7258f (patch)
tree13b53713ef8f483a82295324e314da48b59c9346 /xmalloc.c
parent712f80b0a49c3a0227d0b52bff5e0b763747697e (diff)
downloadbash-5.1-beta.tar.gz
bash-5.1 beta releasebash-5.1-beta
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmalloc.c b/xmalloc.c
index ca297dcf..1b3b4088 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -47,11 +47,11 @@
# endif /* !__STDC__ */
#endif /* !PTR_T */
-#if defined (HAVE_SBRK) && !HAVE_DECL_SBRK
+#if HAVE_SBRK && !HAVE_DECL_SBRK
extern char *sbrk();
#endif
-#if defined (HAVE_SBRK) && defined (USING_BASH_MALLOC)
+#if HAVE_SBRK && defined (USING_BASH_MALLOC)
static PTR_T lbreak;
static int brkfound;
static size_t allocated;
@@ -63,7 +63,7 @@ static size_t allocated;
/* */
/* **************************************************************** */
-#if defined (HAVE_SBRK) && defined (USING_BASH_MALLOC)
+#if HAVE_SBRK && defined (USING_BASH_MALLOC)
#define FINDBRK() \
do { \
if (brkfound == 0) \
@@ -88,7 +88,7 @@ allocerr (func, bytes)
const char *func;
size_t bytes;
{
-#if defined (HAVE_SBRK) && defined (USING_BASH_MALLOC)
+#if HAVE_SBRK && defined (USING_BASH_MALLOC)
allocated = findbrk ();
fatal_error (_("%s: cannot allocate %lu bytes (%lu bytes allocated)"), func, (unsigned long)bytes, (unsigned long)allocated);
#else
@@ -160,7 +160,7 @@ sh_allocerr (func, bytes, file, line)
char *file;
int line;
{
-#if defined (HAVE_SBRK)
+#if HAVE_SBRK
allocated = findbrk ();
fatal_error (_("%s: %s:%d: cannot allocate %lu bytes (%lu bytes allocated)"), func, file, line, (unsigned long)bytes, (unsigned long)allocated);
#else