| To: | scsh-bugs@martigny.ai.mit.edu |
|---|---|
| Subject: | irix5.2 problem with sys_errlist |
| From: | Dave Love <d.love@dl.ac.uk> |
| Date: | Thu, 5 Jan 95 21:38:27 GMT |
I needed this change to compile syscalls1.c for irix5.2. Maybe it
should be generalised with a configure test.
===================================================================
RCS file: syscalls1.c,v
retrieving revision 1.1
diff -u -r1.1 syscalls1.c
--- 1.1 1995/01/05 21:25:18
+++ syscalls1.c 1995/01/05 21:27:04
@@ -457,7 +457,10 @@
const char *errno_msg(int i)
{
extern int sys_nerr;
- const extern char *sys_errlist[];
+#ifndef _SGI_SOURCE /* else problem on Irix5.2, at least */
+ const
+#endif
+ extern char *sys_errlist[];
return ( i < 0 || i > sys_nerr )
? (char*) NULL /* i.e., #f */
: sys_errlist[i];
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Doc bug: "sort" function referenced in `awk.tex' chapter doesn't exist, Olin Shivers |
|---|---|
| Next by Date: | Re: irix5.2 problem with sys_errlist, Dave Love |
| Previous by Thread: | Doc bug: "sort" function referenced in `awk.tex' chapter doesn't exist, Bill Sommerfeld |
| Next by Thread: | Re: irix5.2 problem with sys_errlist, Dave Love |
| Indexes: | [Date] [Thread] [Top] [All Lists] |