1
1

Include <stdlib.h> instead of <malloc.h>. This avoids a compiler error

on some systems caused by the definition of malloc in
opal_config_bottom.h getting expanded in the system malloc.h when
OPAL_ENABLE_MEM_DEBUG is set to 1.

This commit was SVN r24210.
Этот коммит содержится в:
Ethan Mallove 2011-01-06 18:16:36 +00:00
родитель 58445f3775
Коммит 82054cb02c
3 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -44,7 +44,7 @@ const char *ibv_get_sysfs_path(void);
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <malloc.h>
#include <stdlib.h>
#include <stddef.h>
#include "opal/mca/event/event.h"

Просмотреть файл

@ -1,6 +1,7 @@
/*
* Copyright (c) 2008 Chelsio, Inc. All rights reserved.
* Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
*
* Additional copyrights may follow
*
@ -15,7 +16,7 @@
#if OMPI_HAVE_RDMACM
#include <rdma/rdma_cma.h>
#include <malloc.h>
#include <stdlib.h>
#include <stdio.h>
#include "opal/util/argv.h"

Просмотреть файл

@ -3,6 +3,7 @@
* Copyright (c) 2007-2008 Chelsio, Inc. All rights reserved.
* Copyright (c) 2008 Mellanox Technologies. All rights reserved.
* Copyright (c) 2009 Sandia National Laboratories. All rights reserved.
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
*
* $COPYRIGHT$
*
@ -41,7 +42,6 @@
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
#include <malloc.h>
#include <stddef.h>
#include "opal/util/output.h"