summaryrefslogtreecommitdiff
blob: e8330074d9bde597cad0ef979960a3721fabcabf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/libsial/Makefile
+++ b/libsial/Makefile
@@ -53,7 +53,7 @@
 	./mkbaseop > baseops.c
 	$(CC) $(CFLAGS) -c baseops.c
 
-mkbaseop.c sial_member.o sial_op.o sial_stat.o sial_type.o y.tab.o : sial.tab.h
+mkbaseop.c sial_api.o sial_member.o sial_op.o sial_stat.o sial_type.o y.tab.o : sial.tab.h
 
 lex.sial.o: lex.sial.c sial.tab.c sial.h
 	$(CC) $(CFLAGS) -c lex.sial.c
--- a/libklib/kl_savedump.c
+++ b/libklib/kl_savedump.c
@@ -24,6 +24,10 @@
 #include <unistd.h>
 #include <linux/stddef.h>
 
+#ifndef offsetof
+#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
+#endif
+
 static int kl_check_type_dev(char *);
 static int kl_check_type_dir(char *);
 static int __kl_dump_retrieve_reg(int,int,char*,int,int);