]> git.draconx.ca Git - dxcommon.git/blobdiff - t/getopt/getopt.h
help: Allow tests to build/run without <getopt.h>
[dxcommon.git] / t / getopt / getopt.h
diff --git a/t/getopt/getopt.h b/t/getopt/getopt.h
new file mode 100644 (file)
index 0000000..56c2642
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * 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