--- /dev/null
+/*
+ * Copyright © 2023 Nick Bowler
+ *
+ * Stub getopt.h for test purposes.
+ *
+ * License WTFPL2: Do What The Fuck You Want To Public License, version 2.
+ * This is free software: you are free to do what the fuck you want to.
+ * There is NO WARRANTY, to the extent permitted by law.
+ */
+
+#ifndef TEST_GETOPT_H_
+#define TEST_GETOPT_H_
+
+struct option {
+ const char *name;
+ int has_arg;
+ int *flag;
+ int val;
+};
+
+#endif