summaryrefslogtreecommitdiff
path: root/libsysfs
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-10-22 19:38:10 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:05:23 -0700
commitbf0314e326319354c857a7e9150460ec239fb07d (patch)
tree31aa9d8fd2b7efb9904ac5f1fec9d5af43f4c837 /libsysfs
parenta41a0e28c2ba0abf99b5e7ea17645ae0e4f05758 (diff)
[PATCH] make libsysfs build cleanly
Diffstat (limited to 'libsysfs')
-rw-r--r--libsysfs/Makefile45
-rw-r--r--libsysfs/dlist.c1
-rw-r--r--libsysfs/dlist.h1
3 files changed, 1 insertions, 46 deletions
diff --git a/libsysfs/Makefile b/libsysfs/Makefile
deleted file mode 100644
index b82acbdbf2..0000000000
--- a/libsysfs/Makefile
+++ /dev/null
@@ -1,45 +0,0 @@
-# Makefile for libsysfs.a
-# Copyright (c) International Business Machines Corp., 2003
-
-H_INCLUDE=.
-LIB_INCLUDE=.
-OBJS=sysfs_bus.o sysfs_class.o sysfs_device.o sysfs_dir.o sysfs_driver.o \
- sysfs_utils.o dlist.o
-
-# Install directory
-
-# Options
-CFLAGS=-O2 -Wall -g
-
-# sysfs library
-LIBSYSFS=libsysfs.a
-
-RM=rm -f
-
-libsysfs.a: $(OBJS)
- $(AR) cru $(LIBSYSFS) $(OBJS)
- $(RANLIB) $(LIBSYSFS)
-
-sysfs_bus.o: sysfs_bus.c
- $(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_bus.c
-
-sysfs_class.o: sysfs_class.c
- $(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_class.c
-
-sysfs_device.o: sysfs_device.c
- $(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_device.c
-
-sysfs_dir.o: sysfs_dir.c
- $(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_dir.c
-
-sysfs_driver.o: sysfs_driver.c
- $(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_driver.c
-
-sysfs_utils.o: sysfs_utils.c
- $(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_utils.c
-
-dlist.o: dlist.c
- $(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c dlist.c
-
-clean:
- $(RM) *.o *~ core $(LIBSYSFS)
diff --git a/libsysfs/dlist.c b/libsysfs/dlist.c
index 6dfcf726ba..a94ab1f854 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 5da79f9ba2..83f67e8d44 100644
--- a/libsysfs/dlist.h
+++ b/libsysfs/dlist.h
@@ -52,7 +52,6 @@
* to think about it.
*/
-#include <malloc.h>
typedef struct dl_node {
struct dl_node *prev;
struct dl_node *next;