ofed/libibverbs: remove no longer needed local alloca.h
Sponsored by: NVidia networking MFC after: 1 week
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
#ifndef _LIBIBVERBS_ALLOCA_H_
|
||||
#define _LIBIBVERBS_ALLOCA_H_
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define strdupa(_s) \
|
||||
({ \
|
||||
char *_d; \
|
||||
int _len; \
|
||||
\
|
||||
_len = strlen(_s) + 1; \
|
||||
_d = alloca(_len); \
|
||||
if (_d) \
|
||||
memcpy(_d, _s, _len); \
|
||||
_d; \
|
||||
})
|
||||
#endif /* _LIBIBVERBS_ALLOCA_H_ */
|
||||
@@ -38,7 +38,6 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <alloca.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "ibverbs.h"
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <alloca.h>
|
||||
|
||||
#include "ibverbs.h"
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <alloca.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "ibverbs.h"
|
||||
|
||||
Reference in New Issue
Block a user