Re: gnome-libs 0.99.2

>From: Miguel de Icaza <>
>> Firstly, in gnome-libs, I had to add -D__EXTENSIONS__ to SUPPORTINCS in the 
>> Makefile of both zvt and libgnorba, so that a number of typedefs and 
>> structure definitions would happen.  
>What is the rationale for this change?  Can you provide us with
>documentation for this so that we provide the proper configure check?


>- on sparc-sun-solaris2.6 for zvt/gnome-pty-helper.c:
>: :gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H 
-I../support -I../support -I../intl -I../intl -I/usr/local/include 
-I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include 
-I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include 
-I/usr/local/include -I/usr/local/include -DGNOMESBINDIR=\""/usr/local/sbin"\" 
-I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 
-Wall -Wno-unused  -c gnome-pty-helper.c
>: :In file included from gnome-pty-helper.c:38:
>: :/usr/include/sys/resource.h:115: field `ru_utime' has incomplete type
>: :/usr/include/sys/resource.h:116: field `ru_stime' has incomplete type
>: :In file included from gnome-pty-helper.c:53:
>  ......In fact _POSIX_SOURCE then defines other
>  macros which do provoke the skip the definition of struct timeval in
>  <sys/time.h> as shown below
>#if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || \
>        defined(__EXTENSIONS__) || defined(_XPG4_2)
>#ifndef _ASM

Thanks for reminding me ;O)  Miguel, *this* is the reason I added 
-D__EXTENSIONS__ to SUPPORTINCS - same problem, different solution =O)  Same 
thing solved the problems I also got in gnorba.

Which one do you prefer?


-------My opinion - Not sane, intelligent or necessarily useful-------
o o                             
/v\ark R. Bowyer.  mailto:Mark.Bowyer@UK.Sun.COM
`-'                                             I'm the dots in

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]