This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: relocate bits of posix.cc into natPosix*.cc?
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Adam Megacz <gcj at lists dot megacz dot com>
- Cc: java at gcc dot gnu dot org
- Date: Tue, 05 Feb 2002 13:21:02 +1300
- Subject: Re: relocate bits of posix.cc into natPosix*.cc?
- References: <86wuxxolg1.fsf@megacz.com> <86r8o0yhbb.fsf@megacz.com>
Adam Megacz wrote:
>Hey, setting aside any grand plans of reorganizing gcj's
>platform-specific code, what should I do here as a short-term
>solution? I see three options:
>
>1. What I write below: eliminate posix.cc, it only defines two
> functions which could go elsewhere.
>
>2. Inline _Jv_gettimeofday(), leave _Jv_select() in posix.cc, and add
> configure hackery to make posix.cc not build on win32.
>
>3. "#ifdef POSIX" the entire file.
>
How about adding a win32.cc, putting the win32 implementation of
_Jv_gettimeofday() in it, and set things up so that posix.cc only builds
on posix and win32.cc only builds on windows.
regards
Bryce.