Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15039

[PATCH 1/3] Fix implicit declaration of abort()

From Eduardo A. Bustamante López <dualbus@gmail.com>
Newsgroups gnu.bash.bug
Subject [PATCH 1/3] Fix implicit declaration of abort()
Date 2019-01-04 12:25 -0800
Message-ID <mailman.6774.1546633580.1284.bug-bash@gnu.org> (permalink)

Show all headers | View raw


gcc version 8.2.0 (Debian 8.2.0-13) x86_64-linux-gnu

```
malloc.c:333:3: warning: incompatible implicit declaration of built-in function ‘abort’
malloc.c:333:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
```
---
 lib/malloc/malloc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/malloc/malloc.c b/lib/malloc/malloc.c
index 5621adf4..8f641036 100644
--- a/lib/malloc/malloc.c
+++ b/lib/malloc/malloc.c
@@ -83,6 +83,7 @@
 #endif
 #include <errno.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 #if defined (HAVE_MMAP)
 #include <sys/mman.h>
-- 
2.20.1

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 1/3] Fix implicit declaration of abort() Eduardo A. Bustamante López <dualbus@gmail.com> - 2019-01-04 12:25 -0800

csiph-web