From: Tatsuo Furukawa <frkwtto@osk3.3web.ne.jp>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: suppress warning on HP-UX (zsh-3.1.5-pws-18)
Date: Thu, 13 May 1999 00:38:54 +0900 [thread overview]
Message-ID: <199905121536.AAA05484@pop1.ngy.3web.ne.jp> (raw)
Hi, zsh developers. I made a patch for zsh-3.1.5-pws-18.
In HP-UX, compiler generates many warnings. Such as:
cc -Aa -D_HPUX_SOURCE -c -I. -DHAVE_CONFIG_H -O -o signals.o signals.c
cpp: "stdsyms.h", line 10: warning 2001: Redefinition of macro _INCLUDE_POSIX_SOURCE.
cpp: "stdsyms.h", line 12: warning 2001: Redefinition of macro _INCLUDE_XOPEN_SOURCE.
cpp: "stdsyms.h", line 14: warning 2001: Redefinition of macro _INCLUDE_HPUX_SOURCE.
cc -Aa -D_HPUX_SOURCE -c -I. -DHAVE_CONFIG_H -O -o signames.o signames.c
cpp: "stdsyms.h", line 10: warning 2001: Redefinition of macro _INCLUDE_POSIX_SOURCE.
cpp: "stdsyms.h", line 12: warning 2001: Redefinition of macro _INCLUDE_XOPEN_SOURCE.
cpp: "stdsyms.h", line 14: warning 2001: Redefinition of macro _INCLUDE_HPUX_SOURCE.
cc -Aa -D_HPUX_SOURCE -c -I. -DHAVE_CONFIG_H -O -o subst.o subst.c
cpp: "stdsyms.h", line 10: warning 2001: Redefinition of macro _INCLUDE_POSIX_SOURCE.
cpp: "stdsyms.h", line 12: warning 2001: Redefinition of macro _INCLUDE_XOPEN_SOURCE.
These macros are defined in HP-UX automatically if _HPUX_SOURCE macro
is defined. (Please refer /usr/include/sys/stdsyms.h)
And zsh defines _HPUX_SOURCE macro. So these macro doesn't have to
define at zsh side.
Here is the patch:
diff -ur zsh-3.1.5-pws-18.orig/Src/system.h zsh-3.1.5-pws-18/Src/system.h
--- zsh-3.1.5-pws-18.orig/Src/system.h Mon Mar 1 18:46:51 1999
+++ zsh-3.1.5-pws-18/Src/system.h Wed May 12 12:08:50 1999
@@ -27,12 +27,6 @@
*
*/
-#ifdef __hpux
-# define _INCLUDE_POSIX_SOURCE 1
-# define _INCLUDE_XOPEN_SOURCE 1
-# define _INCLUDE_HPUX_SOURCE 1
-#endif
-
#ifdef sinix
# define _XPG_IV 1
#endif
--
Tatsuo Furukawa (frkwtto@osk3.3web.ne.jp)
reply other threads:[~1999-05-12 15:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199905121536.AAA05484@pop1.ngy.3web.ne.jp \
--to=frkwtto@osk3.3web.ne.jp \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).