From: Dominic Radermacher Date: Thu, 3 Mar 2016 21:08:04 +0000 (+0100) Subject: Fix compile error on debian jessie X-Git-Tag: v1.3.4~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=70d1079a42515cf8e343389c8129a0ca9406b0ee;p=ptouch-print Fix compile error on debian jessie --- diff --git a/Makefile.am b/Makefile.am index 9232eaf..e6f56fa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = subdir-objects AM_CPPFLAGS= -DLOCALEDIR='"$(localedir)"' -AM_CFLAGS=-g -Wall -O3 -I$(top_srcdir)/include `pkg-config --cflags gtk+-3.0` +AM_CFLAGS=-g -std=c11 -Wall -O3 -I$(top_srcdir)/include `pkg-config --cflags gtk+-3.0` SUBDIRS = po ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = config.rpath m4/ChangeLog Makefile.old data/ptouch.ui diff --git a/src/libptouch.c b/src/libptouch.c index db0b07d..45833df 100644 --- a/src/libptouch.c +++ b/src/libptouch.c @@ -17,6 +17,8 @@ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define _POSIX_C_SOURCE 199309L /* needed for nanosleep() when using -std=c11 */ + #include #include /* malloc() */ #include /* memcmp() */