diff -rup makedumpfile.old/dwarfinfo/dwarfdump.c makedumpfile/dwarfinfo/dwarfdump.c
--- makedumpfile.old/dwarfinfo/dwarfdump.c	2006-09-30 05:58:57.000000000 +0900
+++ makedumpfile/dwarfinfo/dwarfdump.c	2006-09-30 05:59:13.000000000 +0900
@@ -72,20 +72,6 @@ static int process_one_file(Elf * elf, i
 
 struct dwarf_info dwarf_info;
 
-int
-open_kernel_file(string name)
-{
-    int f = 0;
-
-#ifdef __CYGWIN__
-    f = open(name, O_RDONLY | O_BINARY);
-#else
-    f = open(name, O_RDONLY);
-#endif
-    return f;
-
-}
-
 #ifdef DEBUG
 /*
  * Iterate through dwarf and print all info.
diff -rup makedumpfile.old/makedumpfile.c makedumpfile/makedumpfile.c
--- makedumpfile.old/makedumpfile.c	2006-09-30 05:58:57.000000000 +0900
+++ makedumpfile/makedumpfile.c	2006-09-30 05:59:13.000000000 +0900
@@ -314,6 +314,15 @@ open_config_file(struct DumpInfo *info, 
 }
 
 int
+open_kernel_file(char *name)
+{
+    int fd;
+
+    fd = open(name, O_RDONLY);
+    return fd;
+}
+
+int
 open_dump_memory(struct DumpInfo *info)
 {
 	int fd;
