add GNU getopti & check for it; prepare for use with getopt_long()

This commit is contained in:
marschap
2006-01-16 19:53:28 +00:00
parent a66d02577e
commit e0bc105759
6 changed files with 1430 additions and 2 deletions
+4 -2
View File
@@ -35,9 +35,8 @@
#ifndef WIN32
# include <pwd.h>
# include <sys/wait.h>
#else
# include "getopt.h"
#endif
#include <errno.h>
#include <math.h>
#include <sys/stat.h>
@@ -45,6 +44,8 @@
#include <fcntl.h>
#include <sys/types.h>
#include "getopt.h"
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
@@ -70,6 +71,7 @@ extern int optind, optopt, opterr;
#include "drivers.h"
#include "main.h"
#define DEFAULT_BIND_ADDR "127.0.0.1"
#define DEFAULT_BIND_PORT LCDPORT
#define DEFAULT_CONFIGFILE "/etc/LCDd.conf"