This commit is contained in:
Martin Lund 2022-07-03 18:28:51 +02:00
parent 5bf7ae6382
commit b72fae4c87
3 changed files with 7 additions and 4 deletions

View file

@ -19,7 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
#define _GNU_SOURCE
#include "config.h"
#include <sys/types.h>
#include <sys/stat.h>

View file

@ -20,6 +20,7 @@
*/
#pragma once
#define UNUSED(expr) do { (void)(expr); } while (0)
char * current_time(void);

View file

@ -20,10 +20,6 @@
* 02110-1301, USA.
*/
#include "socket.h"
#include "options.h"
#include "print.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
@ -33,6 +29,10 @@
#include <netinet/in.h>
#include <unistd.h>
#include "socket.h"
#include "options.h"
#include "print.h"
#define MAX_SOCKET_CLIENTS 16
#define SOCKET_PORT_DEFAULT 3333