dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit ad35ceb5fb10ecccbe1d2c32f7c1c01138233c21
parent 7001ed7cbc28fe4c057907e403fd3a85d876725a
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu, 16 Oct 2014 20:43:41 +0200

Move defintion of _GNU_SOURCE to config.mk

Diffstat:
config.mk | 2+-
dvtm.c | 1-
vt.c | 1-
3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/config.mk b/config.mk @@ -21,7 +21,7 @@ LIBS = -lc -lutil -lncursesw # Cygwin #INCS = -I/usr/include/ncurses -CFLAGS += -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG +CFLAGS += -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG -D_GNU_SOURCE LDFLAGS += ${LIBS} DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter diff --git a/dvtm.c b/dvtm.c @@ -11,7 +11,6 @@ * See LICENSE for details. */ -#define _GNU_SOURCE #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/wait.h> diff --git a/vt.c b/vt.c @@ -16,7 +16,6 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <fcntl.h>