diff options
Diffstat (limited to 'libsysfs')
-rw-r--r-- | libsysfs/dlist.c | 1 | ||||
-rw-r--r-- | libsysfs/dlist.h | 5 | ||||
-rw-r--r-- | libsysfs/sysfs.h | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/libsysfs/dlist.c b/libsysfs/dlist.c index c4ee324573..c44e9d5ff5 100644 --- a/libsysfs/dlist.c +++ b/libsysfs/dlist.c @@ -27,6 +27,7 @@ * delete function. Otherwise dlist will just use free. */ +#include "stdlib.h" #include "dlist.h" /* diff --git a/libsysfs/dlist.h b/libsysfs/dlist.h index 9e3a6c96de..62eaa9fec4 100644 --- a/libsysfs/dlist.h +++ b/libsysfs/dlist.h @@ -50,9 +50,10 @@ * Just use the dlist_(insert|delete)_(before|after) macros if you do not want * to think about it. - */ -#include <malloc.h> + +#include <stddef.h> + typedef struct dl_node { struct dl_node *prev; struct dl_node *next; diff --git a/libsysfs/sysfs.h b/libsysfs/sysfs.h index 30bd9b4089..838427797d 100644 --- a/libsysfs/sysfs.h +++ b/libsysfs/sysfs.h @@ -28,7 +28,6 @@ #include <unistd.h> #include <string.h> #include <ctype.h> -#include <mntent.h> #include <dirent.h> #include <sys/stat.h> #include <fcntl.h> |