~aritra1911/mc_server

bc9f01d119417775cc94ea75437606387616d2c3 — Aritra Sarkar 1 year, 11 months ago 6b55ae3
Add -D_XOPEN_SOURCE=600 in Makefile
3 files changed, 4 insertions(+), 1 deletions(-)

M Makefile
M response.c
M response.h
M Makefile => Makefile +1 -1
@@ 2,7 2,7 @@ LIBS = -pthread

CFLAGS=	-Wall -Wextra -pedantic -Werror-implicit-function-declaration \
	-g -O0 -std=c99
CPPFLAGS = -D_POSIX_C_SOURCE=200809L
CPPFLAGS = -D_XOPEN_SOURCE=600
LDFLAGS = $(LIBS)

SRCS = main.c session.c response.c tpool.c events.c helpers.c

M response.c => response.c +1 -0
@@ 21,6 21,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>

#include "common.h"
#include "response.h"

M response.h => response.h +2 -0
@@ 1,6 1,8 @@
#ifndef _RESPONSE_H
# define _RESPONSE_H

# include <sys/types.h>

# include "common.h"
# include "session.h"