summaryrefslogtreecommitdiffstats
path: root/test-getsubopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-getsubopt.c')
-rw-r--r--test-getsubopt.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-getsubopt.c b/test-getsubopt.c
new file mode 100644
index 00000000..25e11246
--- /dev/null
+++ b/test-getsubopt.c
@@ -0,0 +1,12 @@
+#if defined(__linux__) || defined(__MINT__)
+# define _GNU_SOURCE /* getsubopt() */
+#endif
+
+#include <stdlib.h>
+
+int
+main(int argc, char **argv)
+{
+ getsubopt(argv, argv, argv);
+ return 0;
+}