X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Fgetopt-compat.h;h=fab4d285b6a164855bdd49fb7f1f496e9872db73;hb=e56a2a8d783f363a7c64cfaa03cecce4f17f3088;hp=a32e8b5b36618edab4c2bab31a7267a753c31d9f;hpb=7fc7988b8ee3c9f0e824d3ac777e7d9475bd15b9;p=openldap diff --git a/include/getopt-compat.h b/include/getopt-compat.h index a32e8b5b36..fab4d285b6 100644 --- a/include/getopt-compat.h +++ b/include/getopt-compat.h @@ -1,3 +1,4 @@ +/* $OpenLDAP$ */ /* * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA * All rights reserved. @@ -15,9 +16,13 @@ #include -extern char *optarg; -extern int optind, opterr, optopt; +LDAP_BEGIN_DECL -LDAP_F int getopt LDAP_P((int, char * const [], const char *)); +LIBLUTIL_F (char *) optarg; +LIBLUTIL_F (int) optind, opterr, optopt; + +LIBLUTIL_F (int) getopt LDAP_P(( int, char * const [], const char *)); + +LDAP_END_DECL #endif /* _GETOPT_COMPAT_H */