]> err.no Git - systemd/commitdiff
[PATCH] fix up libsysfs header file usage to fix bug reports from users that have...
authorgreg@kroah.com <greg@kroah.com>
Tue, 24 Feb 2004 03:06:49 +0000 (19:06 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:32:29 +0000 (21:32 -0700)
libsysfs/sysfs.h
libsysfs/sysfs/libsysfs.h

index 49c9285bc37aa1c874ca4fa6833cc8a429608d87..1b800ddcd2311104697370c5d03093c8200b1b43 100644 (file)
@@ -31,6 +31,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <errno.h>
+#include "dlist.h"
 
 /* Debugging */
 #ifdef DEBUG
index 10faab92aa395b0263b7b43730b61602c50c6e20..f3d2dd4d168d7713a470a0425a66412927033595 100644 (file)
@@ -24,7 +24,6 @@
 #define _LIBSYSFS_H_
 
 #include <sys/types.h>
-#include "dlist.h"
 
 /*
  * Generic #defines go here..
@@ -47,6 +46,8 @@
 #define SYSFS_METHOD_SHOW      0x01    /* attr can be read by user */
 #define SYSFS_METHOD_STORE     0x02    /* attr can be changed by user */
 
+struct dlist;
+
 struct sysfs_attribute {
        unsigned char *value;
        unsigned short len;             /* value length */