enable redefinition of TMUX_CONF

Without the added #ifndef / #endif it's not possible to _actually_ redefine TMUX_CONF by means of the compiler flag -DTMUX_CONF=... as done by the build system.
The same patch has also been applied to tmux, cf. master at https://github.com/tmux/tmux/blob/master/tmux.h.
This commit is contained in:
hpcbjdic 2020-03-24 14:56:06 +01:00 committed by Nicolas Viennot
parent f6a4ae6042
commit 8123fa34f8

2
tmux.h
View File

@ -53,7 +53,9 @@ struct tmuxpeer;
struct tmuxproc;
/* Default global configuration file. */
#ifndef TMUX_CONF
#define TMUX_CONF "/etc/tmux.conf"
#endif
/*
* Minimum layout cell size, NOT including separator line. The scroll region