* add alloca.h if we have it to make datatypes happy with gcc on linux
This commit was SVN r990.
Этот коммит содержится в:
родитель
a37a5438c7
Коммит
308ef4c769
@ -180,7 +180,7 @@ LAM_C_GET_ALIGNMENT(void *, LAM_ALIGNMENT_VOID_P)
|
|||||||
|
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
AC_C_RESTRICT
|
AC_C_RESTRICT
|
||||||
AC_CHECK_HEADERS(stdbool.h)
|
AC_CHECK_HEADERS([stdbool.h alloca.h])
|
||||||
LAM_C_WEAK_SYMBOLS
|
LAM_C_WEAK_SYMBOLS
|
||||||
|
|
||||||
# If we want the profiling layer:
|
# If we want the profiling layer:
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
||||||
|
|
||||||
|
#include "lam_config.h"
|
||||||
|
|
||||||
#include "datatype.h"
|
#include "datatype.h"
|
||||||
#include "datatype_internal.h"
|
#include "datatype_internal.h"
|
||||||
|
#ifdef HAVE_ALLOCA_H
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
/* printf( "save in %s:%d at %p DT_BYTE disp %ld count %d\n", __FILE__, __LINE__, (PELEM), (DISP), (COUNT) ); \ */
|
/* printf( "save in %s:%d at %p DT_BYTE disp %ld count %d\n", __FILE__, __LINE__, (PELEM), (DISP), (COUNT) ); \ */
|
||||||
#define SAVE_DESC( PELEM, DISP, COUNT ) \
|
#define SAVE_DESC( PELEM, DISP, COUNT ) \
|
||||||
|
@ -1,8 +1,15 @@
|
|||||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
||||||
|
|
||||||
|
#include "lam_config.h"
|
||||||
|
|
||||||
#include "datatype.h"
|
#include "datatype.h"
|
||||||
#include "datatype_internal.h"
|
#include "datatype_internal.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_ALLOCA_H
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
static int convertor_pack_general( lam_convertor_t* pConvertor, struct iovec* out, unsigned int outCount )
|
static int convertor_pack_general( lam_convertor_t* pConvertor, struct iovec* out, unsigned int outCount )
|
||||||
{
|
{
|
||||||
dt_stack_t* pStack; /* pointer to the position on the stack */
|
dt_stack_t* pStack; /* pointer to the position on the stack */
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
||||||
|
|
||||||
|
#include "lam_config.h"
|
||||||
|
|
||||||
#include "datatype.h"
|
#include "datatype.h"
|
||||||
#include "datatype_internal.h"
|
#include "datatype_internal.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_ALLOCA_H
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
static int convertor_unpack_homogeneous( lam_convertor_t* pConv, struct iovec* iov, unsigned int out_size );
|
static int convertor_unpack_homogeneous( lam_convertor_t* pConv, struct iovec* iov, unsigned int out_size );
|
||||||
static int convertor_unpack_general( lam_convertor_t* pConvertor,
|
static int convertor_unpack_general( lam_convertor_t* pConvertor,
|
||||||
|
@ -1,8 +1,15 @@
|
|||||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
||||||
|
|
||||||
|
#include "lam_config.h"
|
||||||
|
|
||||||
#include "datatype.h"
|
#include "datatype.h"
|
||||||
#include "datatype_internal.h"
|
#include "datatype_internal.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_ALLOCA_H
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
static inline long GET_LOOP_DISP( dt_elem_desc_t* _pElem )
|
static inline long GET_LOOP_DISP( dt_elem_desc_t* _pElem )
|
||||||
{
|
{
|
||||||
while( _pElem->type == DT_LOOP ) ++_pElem;
|
while( _pElem->type == DT_LOOP ) ++_pElem;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/select.h>
|
||||||
#include "lam_config.h"
|
#include "lam_config.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -18,6 +18,13 @@
|
|||||||
#define LAM_FD_SETSIZE 4096
|
#define LAM_FD_SETSIZE 4096
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(NFDBITS) && defined(__NFDBITS)
|
||||||
|
/* Linux doesn't expose NFDBITS if -ansi unless there is another #define
|
||||||
|
* so use the internal version
|
||||||
|
*/
|
||||||
|
#define NFDBITS __NFDBITS
|
||||||
|
#endif
|
||||||
|
|
||||||
struct lam_fd_set_t {
|
struct lam_fd_set_t {
|
||||||
int i;
|
int i;
|
||||||
uint32_t fds_bits[LAM_FD_SETSIZE / NFDBITS];
|
uint32_t fds_bits[LAM_FD_SETSIZE / NFDBITS];
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user