Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: suppress warning on HP-UX (zsh-3.1.5-pws-18)
- X-seq: zsh-workers 6273
- From: Tatsuo Furukawa <frkwtto@xxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: suppress warning on HP-UX (zsh-3.1.5-pws-18)
- Date: Thu, 13 May 1999 00:38:54 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxx)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author