add GNU getopti & check for it; prepare for use with getopt_long()
This commit is contained in:
+4
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user