aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmalloc.c
diff options
context:
space:
mode:
authorPaul Eggert2016-02-09 15:24:08 -0800
committerPaul Eggert2016-02-09 15:25:58 -0800
commit812cddf3060322cc5c59b2864b206e8ddc04e6fe (patch)
tree819de1fc99e118a968994aa7ee6d12b02111c4ec /src/gmalloc.c
parent09ece4d341a7e07fab7be22868ebcadae8641c79 (diff)
downloademacs-812cddf3060322cc5c59b2864b206e8ddc04e6fe.tar.gz
emacs-812cddf3060322cc5c59b2864b206e8ddc04e6fe.zip
Omit valloc decl if redundant
* src/gmalloc.c (valloc): Omit decl if malloc.h is included, to pacify --enable-gcc-warnings.
Diffstat (limited to 'src/gmalloc.c')
-rw-r--r--src/gmalloc.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c
index dd18293dc7e..d795c13f616 100644
--- a/src/gmalloc.c
+++ b/src/gmalloc.c
@@ -1683,14 +1683,17 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
1683 or (US mail) as Mike Haertel c/o Free Software Foundation. */ 1683 or (US mail) as Mike Haertel c/o Free Software Foundation. */
1684 1684
1685#ifndef HYBRID_MALLOC 1685#ifndef HYBRID_MALLOC
1686
1687# ifndef HAVE_MALLOC_H
1686/* Allocate SIZE bytes on a page boundary. */ 1688/* Allocate SIZE bytes on a page boundary. */
1687extern void *valloc (size_t); 1689extern void *valloc (size_t);
1690# endif
1688 1691
1689#if defined _SC_PAGESIZE || !defined HAVE_GETPAGESIZE 1692# if defined _SC_PAGESIZE || !defined HAVE_GETPAGESIZE
1690# include "getpagesize.h" 1693# include "getpagesize.h"
1691#elif !defined getpagesize 1694# elif !defined getpagesize
1692extern int getpagesize (void); 1695extern int getpagesize (void);
1693#endif 1696# endif
1694 1697
1695static size_t pagesize; 1698static size_t pagesize;
1696 1699