fix: working on linux

This commit is contained in:
elvis
2022-04-11 19:19:17 +02:00
parent 79259a15b7
commit a7a0027f86
3 changed files with 10 additions and 6 deletions

View File

@ -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);