From 1282e2e7167de0bff32b9e107e1fd76e5a1ec223 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 18 Sep 2017 07:50:56 +0200 Subject: [PATCH] Fix #9: Y2038 fix for 32 bit GLIBC systems This patch enables 64 bit time_t support on GLIBC based 32 bit systems. See https://sourceware.org/glibc/wiki/Y2038ProofnessDesign for more on this problem. Signed-off-by: Joachim Nilsson --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 5e985bd..bdebce2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,7 +2,7 @@ ACLOCAL_AMFLAGS = -I m4 lib_LTLIBRARIES = libuev.la libuev_la_SOURCES = uev.c io.c timer.c signal.c cron.c -libuev_la_CPPFLAGS = -D_GNU_SOURCE +libuev_la_CPPFLAGS = -D_GNU_SOURCE -D_TIME_BITS=64 libuev_la_CFLAGS = -W -Wall -Wextra libuev_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:2:0