From 41d28e01b505233990faf451ac1f22e507a75672 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Mon, 21 Dec 2020 00:42:37 +0700 Subject: [PATCH] Fix timer.c compilation on non-x86_64 GNU/Linux. (#104) `timer.c` uses `F_SETSIG` which is a GNU extension. As such, it needs `_GNU_SOURCE` to be defined, but this was only done for x86_64, not the other Linux platforms that we have build system support for. Closes interlisp/medley#97. --- bin/makefile-linux.386-x | 3 ++- bin/makefile-linux.armv7l-x | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/makefile-linux.386-x b/bin/makefile-linux.386-x index d85f8ab..c0fb662 100644 --- a/bin/makefile-linux.386-x +++ b/bin/makefile-linux.386-x @@ -24,7 +24,8 @@ DISPOPTFLAGS = -O2 -g3 FPFLAGS = DFLAGS = -DNEW_STORAGE -DLINUX -DAIX -DOLD_CURSOR \ -DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \ - -DRELEASE=351 -DSYSVSIGNALS -DSYSVONLY + -DRELEASE=351 -DSYSVSIGNALS -DSYSVONLY \ + -D_GNU_SOURCE LDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt LDELDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt diff --git a/bin/makefile-linux.armv7l-x b/bin/makefile-linux.armv7l-x index d85f8ab..c0fb662 100644 --- a/bin/makefile-linux.armv7l-x +++ b/bin/makefile-linux.armv7l-x @@ -24,7 +24,8 @@ DISPOPTFLAGS = -O2 -g3 FPFLAGS = DFLAGS = -DNEW_STORAGE -DLINUX -DAIX -DOLD_CURSOR \ -DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \ - -DRELEASE=351 -DSYSVSIGNALS -DSYSVONLY + -DRELEASE=351 -DSYSVSIGNALS -DSYSVONLY \ + -D_GNU_SOURCE LDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt LDELDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt