* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
-#include "libsysfs.h"
+#include "sysfs/libsysfs.h"
#include "sysfs.h"
/**
sysattr->path);
return -1;
}
-#ifdef __KLIBC__
- pgsize = 0x1000;
-#else
- pgsize = sysconf(_SC_PAGESIZE);
-#endif
+
+ pgsize = getpagesize();
fbuf = (unsigned char *)calloc(1, pgsize+1);
if (fbuf == NULL) {
dprintf("calloc failed\n");