zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Compilation fix for AIX (missing consts)
@ 2011-04-26 13:33 Jérémie Roquet
  2011-04-26 19:16 ` Wayne Davison
  2011-05-03 10:23 ` Peter Stephenson
  0 siblings, 2 replies; 10+ messages in thread
From: Jérémie Roquet @ 2011-04-26 13:33 UTC (permalink / raw)
  To: zsh-workers

Hello,

I've had to fix the source to compile zsh on AIX. It looks like the
protos were wrong anyway, but gcc doesn't complain on Linux…
I'm not sure it doesn't break some other platform, but at least these
are the right protos for AIX, Linux and FreeBSD.

Any thoughts on this?

Best regards,

---
diff --git a/Src/prototypes.h b/Src/prototypes.h
index 07fe2d0..401dccf 100644
--- a/Src/prototypes.h
+++ b/Src/prototypes.h
@@ -34,12 +34,12 @@ char *calloc _((size_t, size_t));
 #endif

 #if !(defined(USES_TERMCAP_H) || defined(USES_TERM_H))
-extern int tgetent _((char *bp, char *name));
+extern int tgetent _((char *bp, const char *name));
 extern int tgetnum _((char *id));
 extern int tgetflag _((char *id));
 extern char *tgetstr _((char *id, char **area));
-extern char *tgoto _((char *cm, int destcol, int destline));
-extern int tputs _((char *cp, int affcnt, int (*outc) (int)));
+extern char *tgoto _((const char *cm, int destcol, int destline));
+extern int tputs _((const char *cp, int affcnt, int (*outc) (int)));
 #endif

 /* MISSING PROTOTYPES FOR VARIOUS OPERATING SYSTEMS */

-- 
Jérémie


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-05-09 10:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-26 13:33 [PATCH] Compilation fix for AIX (missing consts) Jérémie Roquet
2011-04-26 19:16 ` Wayne Davison
2011-04-27 15:49   ` Jérémie Roquet
2011-04-27 18:54     ` Wayne Davison
2011-05-03 12:23       ` Jérémie Roquet
2011-05-06 13:51         ` Peter Stephenson
2011-05-06 14:16           ` Peter Stephenson
2011-05-09  9:54           ` Peter Stephenson
2011-05-09 10:33             ` Peter Stephenson
2011-05-03 10:23 ` Peter Stephenson

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).