3 * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
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.
12 * getopt(3) declarations
14 #ifndef _GETOPT_COMPAT_H
15 #define _GETOPT_COMPAT_H
17 #include <ldap_cdefs.h>
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
28 LIBLUTIL_F (char *) optarg;
29 LIBLUTIL_F (int) optind, opterr, optopt;
31 LIBLUTIL_F (int) getopt LDAP_P(( int, char * const [], const char *));
35 #endif /* _GETOPT_COMPAT_H */