Fixed sparc compiling
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 15 Sep 2010 02:09:52 +0000 (19:09 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:54 +0000 (17:35 -0700)
kern/src/elf.c
tests/file_test.c

index 966d0f1..8eadc98 100644 (file)
@@ -144,7 +144,7 @@ int load_elf(struct proc* p, struct file* f)
                            {ELF_AUX_PHNUM, ei.phnum},
                            {ELF_AUX_ENTRY, ei.entry},
                            #ifdef __sparc_v8__
-                           {ELF_AUX_HWCAP,LF_HWCAP_SPARC_FLUSH},
+                           {ELF_AUX_HWCAP, ELF_HWCAP_SPARC_FLUSH},
                            #endif
                            {0, 0}};
 
index 8b01cb2..dc7e91b 100644 (file)
@@ -7,6 +7,7 @@
 #include <errno.h>
 #include <dirent.h>
 #include <stdlib.h>
+#include <string.h>
 
 int main() 
 {