mirror of
https://github.com/ksherlock/profuse.git
synced 2025-04-03 15:29:34 +00:00
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@243 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
parent
9c95d74cba
commit
da84b5bca2
11
apfm.cpp
11
apfm.cpp
@ -286,6 +286,10 @@ int main(int argc, char **argv)
|
||||
int c;
|
||||
|
||||
|
||||
#ifdef __linux__
|
||||
putenv("POSIXLY_CORRECT=1"); // fix getopt to not mutate
|
||||
#endif
|
||||
|
||||
/*
|
||||
char *argv2[] = {
|
||||
(char *)"afpm",
|
||||
@ -325,8 +329,13 @@ int main(int argc, char **argv)
|
||||
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
#ifdef __linux__
|
||||
optind = 0;
|
||||
#else
|
||||
optreset = 1;
|
||||
optind = 1;
|
||||
#endif
|
||||
|
||||
if (argc < 2)
|
||||
{
|
||||
@ -371,4 +380,4 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user