mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 13:30:08 +01:00
shared: include <stdlib.h> in "nm-macros-internal.h"
"nm-macros-internal.h" uses free() for the "nm_auto_free" macro. Thus, as long as that code is there, we anyway must include <stdlib.h> along the line. Do it in "nm-macros-internal.h" to make the header self-contained.
This commit is contained in:
parent
2f6517df43
commit
2c11e23c34
1 changed files with 2 additions and 0 deletions
|
|
@ -22,6 +22,8 @@
|
|||
#ifndef __NM_MACROS_INTERNAL_H__
|
||||
#define __NM_MACROS_INTERNAL_H__
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
/********************************************************/
|
||||
|
||||
#define nm_auto(fcn) __attribute ((cleanup(fcn)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue