Commit 1ee70ed1 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Build fixes for cc 5.70

The built in headers with cc 5.70 include new non-ANSI defines in <errno.h> which clash with some of the names in TCPIPLibs:sys/errno.h
This change extends the practice in some of the libs to not include <errno.h> when __unix is not defined (since the symbol for errno is also declared as extern at the top of the TCPIPLibs copy) to avoid the duplication and hence the clash.
Also, add error text for EAUTH and ENEEDAUTH (text from FreeBSD release 9.0.0 SVN revision 229286) in line with those the Internet module knows about in AUNMsgs.
Built with cc 5.70, but no runtime testing.


Version 5.58. Tagged as 'TCPIPLibs-5_58'
parent b16ebc2e
/* (5.57)
/* (5.58)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 5.57
#define Module_MajorVersion_CMHG 5.58
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 26 May 2013
#define Module_MajorVersion "5.57"
#define Module_Version 557
#define Module_MajorVersion "5.58"
#define Module_Version 558
#define Module_MinorVersion ""
#define Module_Date "26 May 2013"
......@@ -18,6 +18,6 @@
#define Module_ComponentName "TCPIPLibs"
#define Module_ComponentPath "mixed/RiscOS/Sources/Lib/TCPIPLibs"
#define Module_FullVersion "5.57"
#define Module_HelpVersion "5.57 (26 May 2013)"
#define Module_LibraryVersionInfo "5:57"
#define Module_FullVersion "5.58"
#define Module_HelpVersion "5.58 (26 May 2013)"
#define Module_LibraryVersionInfo "5:58"
......@@ -24,8 +24,11 @@ static const char rcsid[] = "$Id$";
#include <netinet/in.h>
#include <arpa/inet.h>
#ifndef __riscos
#include <errno.h>
#else
#include <sys/errno.h>
#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
......
......@@ -27,8 +27,11 @@ static const char rcsid[] = "$Id$";
#define NDEBUG
#include <assert.h>
#include <ctype.h>
#ifndef __riscos
#include <errno.h>
#else
#include <sys/errno.h>
#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
......
......@@ -25,8 +25,11 @@ static char rcsid[] = "$Id$";
#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <string.h>
#ifndef __riscos
#include <errno.h>
#else
#include <sys/errno.h>
#endif
#include <stdio.h>
#include "inetlib.h"
......
......@@ -25,8 +25,11 @@ static char rcsid[] = "$Id$";
#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <string.h>
#ifndef __riscos
#include <errno.h>
#else
#include <sys/errno.h>
#endif
#include "inetlib.h"
......
......@@ -36,7 +36,11 @@ static char sccsid[] = "@(#)err.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <err.h>
#ifdef __riscos
#include <sys/errno.h>
#else
#include <errno.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -40,7 +40,7 @@ static char sccsid[] = "@(#)errlst.c 8.2 (Berkeley) 11/16/93";
#include "unixlib.h"
const char *const sys_errlist[] = {
"Undefined error: 0", /* 0 - ENOERROR */
"No error: 0", /* 0 - ENOERROR */
"Operation not permitted", /* 1 - EPERM */
"No such file or directory", /* 2 - ENOENT */
"No such process", /* 3 - ESRCH */
......@@ -138,5 +138,7 @@ const char *const sys_errlist[] = {
"No locks available", /* 77 - ENOLCK */
"Function not implemented", /* 78 - ENOSYS */
"Inappropriate file type or format", /* 79 - EFTYPE */
"Authentication error", /* 80 - EAUTH */
"Need authenticator" /* 81 - ENEEDAUTH */
};
const int sys_nerr = sizeof(sys_errlist) / sizeof(sys_errlist[0]);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment