Try this please: diff --git a/compat.h b/compat.h index 2e433a0..5f3ff8f 100644 --- a/compat.h +++ b/compat.h @@ -176,6 +176,10 @@ typedef uint64_t u_int64_t; #define TTY_NAME_MAX 32 #endif +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX 255 +#endif + #ifndef HAVE_FLOCK #define LOCK_SH 0 #define LOCK_EX 0
On Tue, Oct 21, 2014 at 08:44:46AM +0100, Christian Ebert wrote: > Hello, > > Trying to build git HEAD fails here like so: > > depbase=`echo screen.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > gcc -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\" > -DPACKAGE_VERSION=\"2.0\" -DPACKAGE_STRING=\"tmux\ 2.0\" > -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tmux\" > -DVERSION=\"2.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 > -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 > -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_BITSTRING_H=1 > -DHAVE_CURSES_H=1 -DHAVE_DIRENT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 > -DHAVE_NCURSES_H=1 -DHAVE_PATHS_H=1 -DHAVE_STDINT_H=1 -DHAVE_SYS_DIR_H=1 > -DHAVE_TERM_H=1 -DHAVE_UTIL_H=1 -DHAVE_B64_NTOP=1 -DHAVE_FORKPTY=1 > -DHAVE_DAEMON=1 -DHAVE_SETENV=1 -DHAVE_STRLCPY=1 -DHAVE_STRLCAT=1 > -DHAVE_ASPRINTF=1 -DHAVE_FGETLN=1 -DHAVE_FPARSELN=1 -DHAVE_STRCASESTR=1 > -DHAVE_STRSEP=1 -DHAVE_CFMAKERAW=1 -DHAVE_DECL_OPTARG=1 -DHAVE_DECL_OPTIND=1 > -DHAVE_DECL_OPTRESET=1 -DHAVE_GETOPT=1 -DHAVE_BZERO=1 -DHAVE_DIRFD=1 > -DHAVE_FLOCK=1 -DHAVE_SYSCONF=1 -DHAVE_CFMAKERAW=1 -DHAVE_BSD_TYPES=1 > -DHAVE___PROGNAME=1 -DBROKEN_CMSG_FIRSTHDR=1 -I. -I/sw/include -I/usr/local/include -I/sw/include -I/opt/X11/include -DTMUX_CONF="\"/etc/tmux.conf\"" -DDEBUG -iquote. -I/usr/local/include -I/usr/local/include -I/sw/include -I/opt/X11/include -std=gnu99 -O2 -g -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare -Wundef -Wbad-function-cast -Winline -Wcast-align -Wdeclaration-after-statement -Wno-pointer-sign -MT screen.o -MD -MP -MF $depbase.Tpo -c -o screen.o screen.c &&\ > mv -f $depbase.Tpo $depbase.Po > screen.c:35:12: error: use of undeclared identifier 'HOST_NAME_MAX' > char host[HOST_NAME_MAX]; > ^ > 1 error generated. > make: *** [screen.o] Error 1 > > > Let me know if you need more details. > > e44bdcce4c661b52d07f30962aafa800d9ca5e28 of Oct 16 builds fine. > > Christian > > -- > theatre - books - texts - movies > Black Trash Productions at home: http://www.blacktrash.org > Black Trash Productions on Facebook: > http://www.facebook.com/blacktrashproductions > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users