/* getopt-compat.h -- getopt(3) compatibility header */1/* $OpenLDAP$ */2/* This work is part of OpenLDAP Software <http://www.openldap.org/>.3*4* Copyright 1998-2024 The OpenLDAP Foundation.5* All rights reserved.6*7* Redistribution and use in source and binary forms, with or without8* modification, are permitted only as authorized by the OpenLDAP9* Public License.10*11* A copy of this license is available in file LICENSE in the12* top-level directory of the distribution or, alternatively, at13* <http://www.OpenLDAP.org/license.html>.14*/1516/*17* getopt(3) declarations18*/19#ifndef _GETOPT_COMPAT_H20#define _GETOPT_COMPAT_H2122#include <ldap_cdefs.h>2324LDAP_BEGIN_DECL2526/* change symbols to avoid clashing */27#define optarg lutil_optarg28#define optind lutil_optind29#define opterr lutil_opterr30#define optopt lutil_optopt31#define getopt lutil_getopt3233LDAP_LUTIL_V (char *) optarg;34LDAP_LUTIL_V (int) optind, opterr, optopt;35LDAP_LUTIL_F (int) getopt LDAP_P(( int, char * const [], const char *));3637LDAP_END_DECL3839#endif /* _GETOPT_COMPAT_H */404142