freebsd_network: add __UNCONST
Needed by the new DNS resolver from NetBSD.
This commit is contained in:
@@ -303,4 +303,8 @@
|
|||||||
#define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))
|
#define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __UNCONST
|
||||||
|
#define __UNCONST(var) ((void*)(uintptr_t)(const void *)(var))
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user