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

2019-01-06 Thread Chet Ramey
On 1/4/19 3:25 PM, Eduardo A. Bustamante López wrote:
> 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 ‘’ or provide a declaration of ‘abort’

Thanks, but you only get this if you are building it outside of bash,
since bash provides a definition for "botch".

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



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

2019-01-04 Thread Eduardo A . Bustamante López
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 ‘’ 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 
 #include 
+#include 
 
 #if defined (HAVE_MMAP)
 #include 
-- 
2.20.1