This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] libffi fix implicit declaration of abort
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, Anthony Green <green at redhat dot com>
- Date: Sat, 30 Aug 2003 21:42:28 +0200
- Subject: [patch] libffi fix implicit declaration of abort
Hi
this one is minor.
/Volumes/xufs/gcc-cvs-clean/gcc/libffi/src/java_raw_api.c:60: warning:
implicit declaration of function `abort'
Ok for mainline?
Andreas
2003-08-30 Andreas Tobler <a.tobler@schweiz.ch>
* src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
about implicit declaration of abort().
Index: src/java_raw_api.c
===================================================================
RCS file: /cvs/gcc/gcc/libffi/src/java_raw_api.c,v
retrieving revision 1.3
diff -u -r1.3 java_raw_api.c
--- src/java_raw_api.c 8 Oct 2002 14:55:02 -0000 1.3
+++ src/java_raw_api.c 30 Aug 2003 19:41:24 -0000
@@ -36,6 +36,7 @@
#include <ffi.h>
#include <ffi_common.h>
+#include <stdlib.h>
#if !defined(NO_JAVA_RAW_API) && !defined(FFI_NO_RAW_API)