mirror of
https://github.com/nmap/nmap.git
synced 2026-01-08 07:29:03 +00:00
Include stddef only if required
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user