From cfef0c6658be29967f883997ba7139ca3bdef2ba Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 27 May 2016 18:04:25 +0100 Subject: getprogname() and setproctitle() on Linux. --- Makefile.am | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 45288a26..6d6a9e7d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -26,7 +26,7 @@ if IS_GCC CFLAGS += -std=gnu99 -O2 if IS_DEBUG CFLAGS += -g -CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 +CFLAGS += -Wno-long-long -Wall -W -Wformat=2 CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align @@ -194,6 +194,15 @@ endif if NO_DAEMON nodist_tmux_SOURCES += compat/daemon.c endif +if NO_DAEMON +nodist_tmux_SOURCES += compat/daemon.c +endif +if NO_GETPROGNAME +nodist_tmux_SOURCES += compat/getprogname.c +endif +if NO_SETPROCTITLE +nodist_tmux_SOURCES += compat/setproctitle.c +endif if NO_SETENV nodist_tmux_SOURCES += compat/setenv.c endif -- cgit