[Pidgin] #516: libgnt/gntwm.c fails to compile in Solaris

Pidgin trac at pidgin.im
Mon Dec 17 17:56:52 EST 2007


#516: libgnt/gntwm.c fails to compile in Solaris
----------------------------------+-----------------------------------------
  Reporter:  dhalik               |       Owner:  tmcmahon2
      Type:  defect               |      Status:  closed   
  Priority:  minor                |   Milestone:  2.2.1    
 Component:  finch (gnt/ncurses)  |     Version:  2.0      
Resolution:  worksforme           |    Keywords:           
   Pending:  0                    |  
----------------------------------+-----------------------------------------
Comment (by dhalik):

 This has been on my TODO list for sometime and it turns out the answer is
 simple. The problem is Sun Studio passes -D__unix NOT -D__unix__. That's
 why the ifdef statement fails. See below, I turned on debugging:

 *SNIP*
 -Qy -D__SunOS_5_9 -D__SUNPRO_C=0x580 -D__SVR4 -D__unix -D__sun -D__sparc
 *SNIP*

 So if I pass -D__unix__ as a cflag everything compiles just fine. I'm not
 sure how you want to attack this, but I'm guessing you'll want to either
 use the attached patch, set a macro to define __unix as __unix__ or add a
 -D flag. Your choice.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/516#comment:24>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list