1 --- io/mmap.c.orig 2015-07-24 04:28:04 UTC 2 +++ io/mmap.c 3 @@ -575,6 +575,7 @@ mwrite_f( 4 return 0; 5 } 6 7 +#ifdef __linux__ 8 static void 9 mremap_help(void) 10 { 11 @@ -634,6 +635,7 @@ mremap_f( 12 13 return 0; 14 } 15 +#endif 16 17 void 18 mmap_init(void) 19 @@ -689,6 +691,7 @@ mmap_init(void) 20 _("writes data into a region in the current memory mapping"); 21 mwrite_cmd.help = mwrite_help; 22 23 +#ifdef __linux__ 24 mremap_cmd.name = "mremap"; 25 mremap_cmd.altname = "mrm"; 26 mremap_cmd.cfunc = mremap_f; 27 @@ -699,11 +702,14 @@ mmap_init(void) 28 mremap_cmd.oneline = 29 _("alters the size of the current memory mapping"); 30 mremap_cmd.help = mremap_help; 31 +#endif 32 33 add_command(&mmap_cmd); 34 add_command(&mread_cmd); 35 add_command(&msync_cmd); 36 add_command(&munmap_cmd); 37 add_command(&mwrite_cmd); 38 +#ifdef __linux__ 39 add_command(&mremap_cmd); 40 +#endif 41 } 42