mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 05:41:16 -03:00
Provide fallback version of getopt_long instead of checking for it's presense every time it is used
darcs-hash:20060828114305-ac50b-f4aad19e936fa42bbe84e51e72aa32445a469527.gz
This commit is contained in:
@@ -153,7 +153,6 @@ int main( int argc, char **argv )
|
||||
|
||||
while( 1 )
|
||||
{
|
||||
#ifdef HAVE_WORKING_GETOPT_LONG
|
||||
static struct option
|
||||
long_options[] =
|
||||
{
|
||||
@@ -194,11 +193,7 @@ int main( int argc, char **argv )
|
||||
GETOPT_STRING,
|
||||
long_options,
|
||||
&opt_index );
|
||||
#else
|
||||
int opt = getopt( argc,
|
||||
argv,
|
||||
GETOPT_STRING );
|
||||
#endif
|
||||
|
||||
if( opt == -1 )
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user