mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
getopt varies too much between platforms, and we already use compat/getopt.c
for Linux so just use it everywhere.
This commit is contained in:
2
compat.h
2
compat.h
@ -370,7 +370,6 @@ int utf8proc_mbtowc(wchar_t *, const char *, size_t);
|
||||
int utf8proc_wctomb(char *, wchar_t);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GETOPT
|
||||
/* getopt.c */
|
||||
extern int BSDopterr;
|
||||
extern int BSDoptind;
|
||||
@ -384,6 +383,5 @@ int BSDgetopt(int, char *const *, const char *);
|
||||
#define optopt BSDoptopt
|
||||
#define optreset BSDoptreset
|
||||
#define optarg BSDoptarg
|
||||
#endif
|
||||
|
||||
#endif /* COMPAT_H */
|
||||
|
Reference in New Issue
Block a user