* Re: SIGWINCH patch
@ 1995-09-07 15:53 Eskandar Ensafi
1995-09-07 16:14 ` Richard Coleman
0 siblings, 1 reply; 2+ messages in thread
From: Eskandar Ensafi @ 1995-09-07 15:53 UTC (permalink / raw)
To: zsh-workers
Hi,
Tatsuo Furukawa <tatsuo@rfcom300.kobe.hp.com> wrote:
>
>
> Hello ! I am zsh novice user.
>
> I tried to complile zsh-2.6-beta10 on HP-UX 8.0. But , I can not compile
> well. (>_<)
>
> Generally, I think zsh-2.6-beta10 can not compile on OS which has not
> SIGWINCH.
>
HP-UX *does* have SIGWICH. However, some constants have to be defined
for it to work:
==============================================================================
/* $Header: signal.h,v 1.49.61.10 92/07/16 16:15:04 indnetwk Exp $ */
/* ... */
# define _SIGWINCH 23 /* window size change signal */
# define _SIGWINDOW _SIGWINCH /* added for compatibility reasons */
#ifdef _INCLUDE_HPUX_SOURCE
/* ... */
# define SIGWINCH _SIGWINCH
# define SIGWINDOW _SIGWINCH
/* ... */
#endif /* _INCLUDE_HPUX_SOURCE */
/* ... */
==============================================================================
As you can see, _INCLUDE_HPUX_SOURCE must be defined. It probably isn't
being defined on your system, so either there's something wrong with your
configuration (system? compiler? headers?) or we have to make sure that
_INCLUDE_HPUX_SOURCE gets defined ny the zsh configure script.
Also note that on most systems (BSD systems in particular), SIGWINCH is
defined to be 28. In HP-UX, it's 23, so we can't make any assumptions
about the value of SIGWINCH (i.e., #ifndef SIGWINCH/#define SIGWINCH 28
is not recommended).
- Esky
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SIGWINCH patch
1995-09-07 15:53 SIGWINCH patch Eskandar Ensafi
@ 1995-09-07 16:14 ` Richard Coleman
0 siblings, 0 replies; 2+ messages in thread
From: Richard Coleman @ 1995-09-07 16:14 UTC (permalink / raw)
To: zsh-workers
> > Generally, I think zsh-2.6-beta10 can not compile on OS which has not
> > SIGWINCH.
>
> HP-UX *does* have SIGWICH. However, some constants have to be defined
> for it to work:
I would be very surprised if any relatively recent system didn't
define SIGWINCH. But you never know with some of these vendors.
> As you can see, _INCLUDE_HPUX_SOURCE must be defined. It probably isn't
> being defined on your system, so either there's something wrong with your
> configuration (system? compiler? headers?) or we have to make sure that
> _INCLUDE_HPUX_SOURCE gets defined ny the zsh configure script.
>
zsh defines _INCLUDE_HPUX_SOURCE in system.h
#ifdef __hpux
#define _INCLUDE_POSIX_SOURCE
#define _INCLUDE_XOPEN_SOURCE
#define _INCLUDE_HPUX_SOURCE
#endif
If your system is having trouble picking this up, add
-D__hpux to the compile time flags.
rc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-09-07 16:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-09-07 15:53 SIGWINCH patch Eskandar Ensafi
1995-09-07 16:14 ` Richard Coleman
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).