summaryrefslogtreecommitdiff
path: root/libsysfs
diff options
context:
space:
mode:
Diffstat (limited to 'libsysfs')
-rw-r--r--libsysfs/dlist.c1
-rw-r--r--libsysfs/dlist.h5
-rw-r--r--libsysfs/sysfs.h1
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>