mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 10:33:28 +08:00
Rename our getopt.h to getopt_long.h.
That way, if we *do* have getopt_long(), we don't end up including our getopt.h rather than the system's getopt.h.
This commit is contained in:
parent
1c9f046591
commit
2ff7ca8e01
@ -236,7 +236,7 @@ HDR = \
|
||||
ether.h \
|
||||
ethertype.h \
|
||||
extract.h \
|
||||
getopt.h \
|
||||
getopt_long.h \
|
||||
gmpls.h \
|
||||
gmt2local.h \
|
||||
interface.h \
|
||||
|
@ -30,8 +30,8 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef _GETOPT_H_
|
||||
#define _GETOPT_H_
|
||||
#ifndef _GETOPT_LONG_H_
|
||||
#define _GETOPT_LONG_H_
|
||||
|
||||
/*
|
||||
* GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension.
|
||||
@ -63,4 +63,4 @@ int getopt_long_only(int, char * const *, const char *,
|
||||
extern char *optarg; /* getopt(3) external variables */
|
||||
extern int optind, opterr, optopt;
|
||||
|
||||
#endif /* !_GETOPT_H_ */
|
||||
#endif /* !_GETOPT_LONG_H_ */
|
Loading…
Reference in New Issue
Block a user