fix: working on linux
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
#define _XOPEN_SOURCE 700
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
@ -5,7 +7,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <pthread.h>
|
||||
#include <ctype.h>
|
||||
#include <signal.h>
|
||||
#include <sys/select.h>
|
||||
|
||||
#include <threadpool.h>
|
||||
@ -63,8 +64,8 @@ int main(int argc, char *argv[]) {
|
||||
int maxFiles; CONFGETINT(maxFiles, config, "files", "MaxFiles", NULL, 10);
|
||||
int maxSize; CONFGETINT(maxSize, config, "files", "MaxSize", NULL, 10);
|
||||
const char *buff;
|
||||
char *logFile; CONFGETSTR(logFile, config, "log", "logFile", buff);
|
||||
char *socketName; CONFGETSTR(socketName, config, "socket", "name", buff);
|
||||
char *logFile=NULL; CONFGETSTR(logFile, config, "log", "logFile", buff);
|
||||
char *socketName=NULL; CONFGETSTR(socketName, config, "socket", "name", buff);
|
||||
int maxBacklog; CONFGETINT(maxBacklog, config, "socket", "backlog", NULL, 10);
|
||||
ini_free(config);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user