* PATCH: suppress warning on HP-UX (zsh-3.1.5-pws-18)
@ 1999-05-12 15:38 Tatsuo Furukawa
0 siblings, 0 replies; only message in thread
From: Tatsuo Furukawa @ 1999-05-12 15:38 UTC (permalink / raw)
To: zsh-workers
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-05-12 15:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-12 15:38 PATCH: suppress warning on HP-UX (zsh-3.1.5-pws-18) Tatsuo Furukawa
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).