mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Include stddef only if required
This commit is contained in:
parent
c7927c5449
commit
0ba3dc0be7
1 changed files with 2 additions and 1 deletions
|
|
@ -69,10 +69,11 @@
|
|||
|
||||
#include "error.h"
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
#if !defined(container_of)
|
||||
#include <stddef.h>
|
||||
|
||||
#define container_of(ptr, type, member) \
|
||||
((type *)((char *)(ptr) - offsetof(type, member)))
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue