]> git.sur5r.net Git - openldap/blob - include/getopt-compat.h
e26c43e0ca5d9112ca627b094266f44c38e18a37
[openldap] / include / getopt-compat.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-2000 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  * getopt(3) declarations
13  */
14 #ifndef _GETOPT_COMPAT_H
15 #define _GETOPT_COMPAT_H
16
17 #include <ldap_cdefs.h>
18
19 LDAP_BEGIN_DECL
20
21 /* change symbols to avoid clashing */
22 #define optarg lutil_optarg
23 #define optind lutil_optind
24 #define opterr lutil_opterr
25 #define optopt lutil_optopt
26 #define getopt lutil_getopt
27
28 LDAP_LUTIL_V (char *) optarg;
29 LDAP_LUTIL_V (int) optind, opterr, optopt;
30 LDAP_LUTIL_F (int) getopt LDAP_P(( int, char * const [], const char *));
31
32 LDAP_END_DECL
33
34 #endif /* _GETOPT_COMPAT_H */