diff options
Diffstat (limited to 'editors/diff.c')
-rw-r--r-- | editors/diff.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/editors/diff.c b/editors/diff.c index 03c13908e..d90ac8f94 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -967,6 +967,11 @@ static const char diff_longopts[] ALIGN1 = | |||
967 | "starting-file\0" Required_argument "S" | 967 | "starting-file\0" Required_argument "S" |
968 | "minimal\0" No_argument "d" | 968 | "minimal\0" No_argument "d" |
969 | ; | 969 | ; |
970 | # define GETOPT32 getopt32long | ||
971 | # define LONGOPTS ,diff_longopts | ||
972 | #else | ||
973 | # define GETOPT32 getopt32 | ||
974 | # define LONGOPTS | ||
970 | #endif | 975 | #endif |
971 | 976 | ||
972 | int diff_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 977 | int diff_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
@@ -980,10 +985,7 @@ int diff_main(int argc UNUSED_PARAM, char **argv) | |||
980 | 985 | ||
981 | /* exactly 2 params; collect multiple -L <label>; -U N */ | 986 | /* exactly 2 params; collect multiple -L <label>; -U N */ |
982 | opt_complementary = "=2"; | 987 | opt_complementary = "=2"; |
983 | #if ENABLE_FEATURE_DIFF_LONG_OPTIONS | 988 | GETOPT32(argv, "abdiL:*NqrsS:tTU:+wupBE" LONGOPTS, |
984 | applet_long_options = diff_longopts; | ||
985 | #endif | ||
986 | getopt32(argv, "abdiL:*NqrsS:tTU:+wupBE", | ||
987 | &L_arg, &s_start, &opt_U_context); | 989 | &L_arg, &s_start, &opt_U_context); |
988 | argv += optind; | 990 | argv += optind; |
989 | while (L_arg) | 991 | while (L_arg) |