/*	$NetBSD: internal.h,v 1.3 1996/02/22 06:14:07 thorpej Exp $	*/

/*
 * Copyright 1987, 1988 by the Student Information Processing Board
 *	of the Massachusetts Institute of Technology
 *
 * Permission to use, copy, modify, and distribute this software
 * and its documentation for any purpose and without fee is
 * hereby granted, provided that the above copyright notice
 * appear in all copies and that both that copyright notice and
 * this permission notice appear in supporting documentation,
 * and that the names of M.I.T. and the M.I.T. S.I.P.B. not be
 * used in advertising or publicity pertaining to distribution
 * of the software without specific, written prior permission.
 * M.I.T. and the M.I.T. S.I.P.B. make no representations about
 * the suitability of this software for any purpose.  It is
 * provided "as is" without express or implied warranty.
 */

#if !(defined(__NetBSD__) || defined(__FreeBSD__))

#ifndef __STDC__
#undef const
#define const
#endif

extern int errno;
#if !defined(linux)
extern char const * const sys_errlist[];
extern const int sys_nerr;
#endif /* defined(linux) */

/* AIX and Ultrix have standard conforming header files. */
#if !defined(ULTRIX_40) && !defined(_AIX) && !defined(__osf__)
#ifdef __STDC__
void perror (const char *);
#else
#ifndef sgi
int perror ();
#endif
#endif
#endif
#endif
