From 5c6bf25f18a74df21ff69f808b9ba2eec9210bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?fengbojiang=28=E5=A7=9C=E5=87=A4=E6=B3=A2=29?= Date: Tue, 10 Jul 2018 16:08:05 +0800 Subject: [PATCH] Fixed redis' compile error of 'struct timespec' when use gcc7.3.0 on ubuntu 18.04. --- app/redis-3.2.8/src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/redis-3.2.8/src/Makefile b/app/redis-3.2.8/src/Makefile index 605736148..69cd58d50 100644 --- a/app/redis-3.2.8/src/Makefile +++ b/app/redis-3.2.8/src/Makefile @@ -25,7 +25,7 @@ OPTIMIZATION?=-O2 DEPENDENCY_TARGETS=hiredis linenoise lua geohash-int # Default settings -STD=-std=c99 -pedantic -DREDIS_STATIC='' +STD=-std=c99 -pedantic -DREDIS_STATIC='' -D_POSIX_C_SOURCE=199506L WARN=-Wall -W OPT=$(OPTIMIZATION)