1
0
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:
henri
2013-12-30 14:35:50 +00:00
parent c7927c5449
commit 0ba3dc0be7

View File

@@ -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