]> mj.ucw.cz Git - libucw.git/commitdiff
commented stolen getopt
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Fri, 13 Apr 2007 07:48:30 +0000 (09:48 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Fri, 13 Apr 2007 07:48:30 +0000 (09:48 +0200)
lib/getopt.c
lib/getopt/README [new file with mode: 0644]

index 1a728c8a683095313c9b93472eed91b21bd32812..a15c9355f959637fc74c7271f9b2cc0d21f9dd24 100644 (file)
@@ -9,6 +9,8 @@ reset_getopt(void)
 }
 
 #ifdef TEST
+#include <stdio.h>
+
 static void
 parse(int argc, char **argv)
 {
diff --git a/lib/getopt/README b/lib/getopt/README
new file mode 100644 (file)
index 0000000..fe24015
--- /dev/null
@@ -0,0 +1,12 @@
+This directory contains getopt routines from the GNU libc 2.5.
+We need this as a fallback for our reset_getopt(), because there is
+no standardized interface for such instruction.
+
+They are distributed under the GNU LGPL.
+
+All files are exact copies of the original distribution with very
+few exceptions commented with `// SHERLOCK' prefix.
+I only provided my own getopt-sh.c, getopt-sh.h and Makefile.
+
+                                        Pavel Charvat, 2007
+