[Darwin2k-devel] minor FreeBSD patches
Status: Beta
Brought to you by:
xrayjones
From: Tim V. <va...@ec...> - 2002-10-13 20:24:40
|
I needed to make a couple small changes to get Darwin2k to compile on FreeBSD. These changes should be either harmless or beneficial for any other architectures. [As an aside, I might find it helpful in the future if a FreeBSD-native version of rtc existed - does such a thing exist anywhere?] Here are the changes I made: diff -ru darwin2k-0.90-orig/README darwin2k-0.90/README --- darwin2k-0.90-orig/README Sun Jan 27 16:36:07 2002 +++ darwin2k-0.90/README Sat Oct 12 23:01:54 2002 @@ -71,7 +71,7 @@ You might also consider downloading the Darwin2K documentation: http://darwin2k.sourceforge.net/tutorial.pdf - a partial tutorial - http://www.darwin2k.sourceforge.net/thesis.pdf - my thesis, explaining + http://darwin2k.sourceforge.net/thesis.pdf - my thesis, explaining Darwin2K's internals, capabilities, and limitations Software requirements diff -ru darwin2k-0.90-orig/src/d2k/d2kcore/dynamicLibs.cxx darwin2k-0.90/src/d2k/d2kcore/dynamicLibs.cxx --- darwin2k-0.90-orig/src/d2k/d2kcore/dynamicLibs.cxx Thu Jan 31 02:41:34 2002 +++ darwin2k-0.90/src/d2k/d2kcore/dynamicLibs.cxx Sun Oct 13 00:13:36 2002 @@ -8,7 +8,7 @@ char fullpath[1024]; void *handle; int (*init)(void); - char *error; + const char *error; if (lib) { #ifdef D2KMODULEDIR diff -ru darwin2k-0.90-orig/src/d2k/misc/dynamicLibs.cxx darwin2k-0.90/src/d2k/misc/dynamicLibs.cxx --- darwin2k-0.90-orig/src/d2k/misc/dynamicLibs.cxx Sat Nov 17 01:06:39 2001 +++ darwin2k-0.90/src/d2k/misc/dynamicLibs.cxx Sun Oct 13 16:19:01 2002 @@ -8,7 +8,7 @@ char fullpath[1024]; void *handle; int (*init)(void); - char *error; + const char *error; #ifdef D2KMODULEDIR if ( lib[0] == '/' ) { The dlerror() on FreeBSD returns a const char *. The website URL change is probably not FreeBSD-specific. :) -- If I could think of a two-line witty aphorism for you to remember me by, this would definitely be it. |