]> git.sur5r.net Git - openldap/blob - include/ac/errno.h
24cb5d0b3849cbd951f68662b28be2a78b270258
[openldap] / include / ac / errno.h
1 /* Generic errno.h */
2 /*
3  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms are permitted only
7  * as authorized by the OpenLDAP Public License.  A copy of this
8  * license is available at http://www.OpenLDAP.org/license.html or
9  * in file LICENSE in the top-level directory of the distribution.
10  */
11
12 #ifndef _AC_ERRNO_H
13 #define _AC_ERRNO_H
14
15 #if defined( HAVE_ERRNO_H )
16 # include <errno.h>
17 #elif defined( HAVE_SYS_ERRNO_H )
18 # include <sys/errno.h>
19 #endif
20
21 #ifndef HAVE_SYS_ERRLIST
22         /* no sys_errlist */
23 #       define          sys_nerr        0
24 #       define          sys_errlist     ((char **)0)
25 #elif DECL_SYS_ERRLIST 
26         /* have sys_errlist but need declaration */
27         extern int      sys_nerr;
28         extern char     *sys_errlist[];
29 #endif
30
31 extern char* strerror_r();
32     
33 #endif /* _AC_ERRNO_H */