ofed/libibverbs: remove no longer needed local alloca.h

Sponsored by:	NVidia networking
MFC after:	1 week
This commit is contained in:
Konstantin Belousov
2025-12-09 01:10:07 +02:00
parent 6a75e39515
commit 70edd3c126
4 changed files with 0 additions and 21 deletions
-18
View File
@@ -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_ */
-1
View File
@@ -38,7 +38,6 @@
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <alloca.h>
#include <string.h>
#include "ibverbs.h"
-1
View File
@@ -36,7 +36,6 @@
#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
#include <alloca.h>
#include "ibverbs.h"
-1
View File
@@ -40,7 +40,6 @@
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <alloca.h>
#include <errno.h>
#include "ibverbs.h"