1
0
mirror of https://git.familie-radermacher.ch/linux/ptouch-print.git synced 2025-05-13 23:32:59 +00:00

Fix compile error on debian jessie

This commit is contained in:
Dominic Radermacher 2016-03-03 22:08:04 +01:00
parent 38f86993cf
commit 70d1079a42
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS = subdir-objects AUTOMAKE_OPTIONS = subdir-objects
AM_CPPFLAGS= -DLOCALEDIR='"$(localedir)"' 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 SUBDIRS = po
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = config.rpath m4/ChangeLog Makefile.old data/ptouch.ui EXTRA_DIST = config.rpath m4/ChangeLog Makefile.old data/ptouch.ui

View File

@ -17,6 +17,8 @@
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define _POSIX_C_SOURCE 199309L /* needed for nanosleep() when using -std=c11 */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> /* malloc() */ #include <stdlib.h> /* malloc() */
#include <string.h> /* memcmp() */ #include <string.h> /* memcmp() */