mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Define ATOMIC_LONG_INIT() in the LinuxKPI.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
f83f88912d
commit
2bb46d5516
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue