3 * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted only as authorized by the OpenLDAP
8 * Public License. A copy of this license is available at
9 * http://www.OpenLDAP.org/license.html or in file LICENSE in the
10 * top-level directory of the distribution.
13 * getopt(3) declarations
15 #ifndef _GETOPT_COMPAT_H
16 #define _GETOPT_COMPAT_H
18 #include <ldap_cdefs.h>
22 /* change symbols to avoid clashing */
23 #define optarg lutil_optarg
24 #define optind lutil_optind
25 #define opterr lutil_opterr
26 #define optopt lutil_optopt
27 #define getopt lutil_getopt
29 LDAP_LUTIL_V (char *) optarg;
30 LDAP_LUTIL_V (int) optind, opterr, optopt;
31 LDAP_LUTIL_F (int) getopt LDAP_P(( int, char * const [], const char *));
35 #endif /* _GETOPT_COMPAT_H */