Re: 2.5 Suggestion (Bob Craig)
- Posted by Robert Craig <rds at RapidEuphoria.com> Jun 05, 2004
- 413 views
Ron Tarrant wrote: > How much trouble would it be to change the platform value for FREEBSD > it's different from the LINUX value? It would break a lot of code. I thought about this carefully when I ported to FreeBSD. At first I was going to have a new platform() value. Then I noticed that in almost every case, Linux code would run without change on FreeBSD, provided the platform() value was the same. So I made it the same. > For some things, like getting information using read_proc(), Linux and > FreeBSD are quite different, so distinguishing between them would be > handy. I guess you'll have to use some other test to make your code work on both Linux and FreeBSD. Maybe test directly to see if a .so exists or not, or look at the values returned from a library call, etc. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com