Date: 25 Jun 2002 13:00:23 +0200 From: Martin Klaffenboeck <martin.klaffenboeck@gmx.at> To: Paul Everlund <tdv94ped@cs.umu.se> Cc: Gavin Kenny <gavinkenny@yahoo.co.uk>, questions@freebsd.org Subject: Re: Porting Tips Message-ID: <1025002823.677.30.camel@martin.kleinerdrache.org> In-Reply-To: <Pine.GSO.4.44.0206251246580.4718-100000@gren.cs.umu.se> References: <Pine.GSO.4.44.0206251246580.4718-100000@gren.cs.umu.se>
next in thread | previous in thread | raw e-mail | index | archive | help
Am Di, 2002-06-25 um 12.52 schrieb Paul Everlund: > > Have "ported" some applications to FreeBSD that where > meant for Linux and Solaris. What I did was compiling > the code with a lot of warning options turned on, then > fixing errors as they did appear. One was for example > O_SYNC to O_FSYNC. In the end it did run ok! > > Not a "nice" way of porting applications I guess, but > it has worked for me. :-) I think, thats a good way to work like that. Because thats fast and often efficient. Sure the problem is, that you have to compare what 0_SYNC does and 0_FSYNC does. If its quite the same, it's ok, if it's not you have to find a second way and you have to patch all this things which are different. But normally you don't want to take the time to find that out or to patch the whole programm. So I think it's ok just change 0_SYNC to 0_FSYNC. If there are some troubles you don't find out, maybe other people will find that out and send a pr to freebsd... ;-) Martin -- Virtuelle Jugendarbeit auf http://create.kleinerdrache.org ... bald kommt ein neues Layout ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1025002823.677.30.camel>