]> mj.ucw.cz Git - libucw.git/commitdiff
Moved #include <getopt.h> to conf.h.
authorMartin Mares <mj@ucw.cz>
Sun, 14 Jan 2001 18:44:03 +0000 (18:44 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 14 Jan 2001 18:44:03 +0000 (18:44 +0000)
lib/conf.h

index c94f1ad082b437fb664dbdafc8e2dede7763ef8c..d2a56af5b30b877bf1eede49fa683bcc7fb74254 100644 (file)
@@ -4,6 +4,8 @@
  *     (c) 2001 Robert Spalek <robert@ucw.cz>
  */
 
+#include <getopt.h>
+
 /*
  * Every module places its configuration setting into some section.  Section is
  * an array of cfitem, whose first record is of type CT_SECTION and contains
@@ -42,6 +44,7 @@ void cf_read(byte *filename);
 #define        CF_LONG_OPTS    \
        {"set",         1, 0, 'S'},\
        {"config",      1, 0, 'C'},
+#define CF_NO_LONG_OPTS (const struct option []){ CF_LONG_OPTS { NULL, 0, 0, 0 } }
 
 int cf_getopt(int argc,char * const argv[],
                const char *shortopts,const struct option *longopts,