relocate bits of posix.cc into natPosix*.cc?

Bryce McKinlay bryce@waitaki.otago.ac.nz
Mon Feb 4 16:25:00 GMT 2002


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.





More information about the Java mailing list