Subject: Compile Problem HPUX w/ GNUC

From: [email-masked]
Date: Thu, 4 Nov 1999 07:13:31 -0600 (CST)

Full_Name: Robert Klein
Version: 2.2.2
CVS_Date: 
OS: HPUX 10.20
X_Server: whatever hpux uses
Submission from: (NULL) (134.93.8.241)

fvwm2.2.2 aborts compilation on HPUX with GNU compiler.
gcc is gcc version egcs-2.90.29 980515 (egcs-1.0.3 release).

Problem is file extras/FvwmConfig/WinBase.C Error is following:
---
WinBase.C: In function `int My_XNextEvent(struct _XDisplay *, union _XEvent
*)':
WinBase.C:985: passing `int *' as argument 2 of `select(int, fd_set *,
fd_set *, fd_set *, timeval *)'
WinBase.C:952: warning: unused variable `int count'
WinBase.C:951: warning: unused variable `long unsigned int targetWindow'
make[3]: *** [WinBase.o] Error 1
---

ok, edited file, now lines 984 et cetera look like:

---
#if defined(__hpux) && !defined(__GNUC__)
  retval=select(fd_width,(int *)&in_fdset, (int *)&out_fdset,0, NULL);
#else
  retval=select(fd_width,&in_fdset, &out_fdset, 0, NULL);
#endif
---

rest did ok.  Now testing...

--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked]