badblocks.c, dumpe2fs.c, e2label.c, mke2fs.c, tune2fs.c, uuidgen.c:
For platforms that don't define optarg.h, manually define optarg and
optind.
ChangeLog, main.c:
main.c: For platforms that don't define optarg.h, manually define
optarg and optind.
ChangeLog, unix.c:
unix.c: For platforms that don't define optarg.h, manually define
optarg and optind.
+2000-04-03 Theodore Ts'o <tytso@valinux.com>
+
+ * unix.c: For platforms that don't define optarg.h, manually
+ define optarg and optind.
+
2000-03-20 Theodore Ts'o <tytso@valinux.com>
* pass1.c (check_immutable, e2fsck_pass1_check_device_inode):
#endif
#ifdef HAVE_GETOPT_H
#include <getopt.h>
+#else
+extern char *optarg;
+extern int optind;
#endif
#include <unistd.h>
#ifdef HAVE_ERRNO_H
2000-04-03 Theodore Ts'o <tytso@valinux.com>
+ * badblocks.c, dumpe2fs.c, e2label.c, mke2fs.c, tune2fs.c,
+ uuidgen.c: For platforms that don't define optarg.h,
+ manually define optarg and optind.
+
* badblocks.8.in: Updated manual page with suggestions from David
Beattie.
#include <fcntl.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
+#else
+extern char *optarg;
+extern int optind;
#endif
#include <signal.h>
#include <stdio.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
+#else
+extern char *optarg;
+extern int optind;
#endif
#include <fcntl.h>
#include <stdio.h>
#include <time.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
+#else
+extern char *optarg;
+extern int optind;
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_GETOPT_H
#include <getopt.h>
+#else
+extern char *optarg;
+extern int optind;
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <grp.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
+#else
+extern char *optarg;
+extern int optind;
#endif
#include <pwd.h>
#include <stdio.h>
#include <stdio.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
+#else
+extern char *optarg;
+extern int optind;
#endif
#include "uuid/uuid.h"
#include "nls-enable.h"
+2000-04-03 Theodore Ts'o <tytso@valinux.com>
+
+ * main.c: For platforms that don't define optarg.h, manually
+ define optarg and optind.
+
2000-02-02 Theodore Ts'o <tytso@valinux.com>
* resize2fs.h: Remove unneeded #include of linux/fs.h
#ifdef HAVE_GETOPT_H
#include <getopt.h>
+#else
+extern char *optarg;
+extern int optind;
#endif
#include <fcntl.h>
#include <sys/ioctl.h>