[PATCH] fix up libsysfs header file usage to fix bug reports from users that have sysfsutils installed already.
This commit is contained in:
parent
75a7b641ab
commit
df41554d99
|
@ -31,6 +31,7 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include "dlist.h"
|
||||||
|
|
||||||
/* Debugging */
|
/* Debugging */
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
#define _LIBSYSFS_H_
|
#define _LIBSYSFS_H_
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "dlist.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Generic #defines go here..
|
* Generic #defines go here..
|
||||||
|
@ -47,6 +46,8 @@
|
||||||
#define SYSFS_METHOD_SHOW 0x01 /* attr can be read by user */
|
#define SYSFS_METHOD_SHOW 0x01 /* attr can be read by user */
|
||||||
#define SYSFS_METHOD_STORE 0x02 /* attr can be changed by user */
|
#define SYSFS_METHOD_STORE 0x02 /* attr can be changed by user */
|
||||||
|
|
||||||
|
struct dlist;
|
||||||
|
|
||||||
struct sysfs_attribute {
|
struct sysfs_attribute {
|
||||||
unsigned char *value;
|
unsigned char *value;
|
||||||
unsigned short len; /* value length */
|
unsigned short len; /* value length */
|
||||||
|
|
Loading…
Reference in a new issue