Gabriele Bulfon <[email protected]> wrote:

> Actually I wouldn't want it, but file_util.h from firefox says:
> #if defined(OS_WIN)
> #include
> #elif defined(ANDROID)
> #include
> #elif defined(OS_POSIX)
> #include
> #include
> #include
> #endif
> and then tries this:
> #if defined(OS_WIN)
> WIN32_FIND_DATA find_data_;
> HANDLE find_handle_;
> #elif defined(ANDROID)
> void *fts_;
> #elif defined(OS_POSIX)
> FTS* fts_;
> FTSENT* fts_ent_;
> #endif

This looks like a bug in firefox.

...except when FTS... is a #define that may be struct FTW.

fts is available on some platforms but not part of posix and I am not sure 
whether it is a good idea to link something against libast that is a 
reimplementation of libc and may behave different from libc. 

Note that libast gives portability by implementing _everything_ from libc.
While this may be a good idea for Win-DOS, in case you don't use Cygwin (note 
that libast is used with UWIN) there are other portability approaches, like 
libschily where the portability lib only contains features that are missing 
from the local libc.

Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]                (uni)  
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily


-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to