Define ATOMIC_LONG_INIT() in the LinuxKPI.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
01daffb975
commit
b9085c1dde
@ -35,6 +35,8 @@
|
||||
#include <sys/types.h>
|
||||
#include <machine/atomic.h>
|
||||
|
||||
#define ATOMIC_LONG_INIT(x) { .counter = (x) }
|
||||
|
||||
typedef struct {
|
||||
volatile long counter;
|
||||
} atomic_long_t;
|
||||
|
Loading…
Reference in New Issue
Block a user