diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-18 19:34:50 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-18 19:34:50 +0000 |
commit | 19b7946a85962f9458325637ff3559bca1286c6b (patch) | |
tree | 7fb0850ed1341a1f2d3ba69fc631c89bb906a426 | |
parent | 83a9f272d8b1d2ec08bc3d5b8fa04d5b8feeb349 (diff) | |
download | rtmux-19b7946a85962f9458325637ff3559bca1286c6b.tar.gz rtmux-19b7946a85962f9458325637ff3559bca1286c6b.tar.bz2 rtmux-19b7946a85962f9458325637ff3559bca1286c6b.zip |
Start of Solaris port.
-rw-r--r-- | GNUmakefile | 9 | ||||
-rw-r--r-- | client.c | 3 | ||||
-rw-r--r-- | server.c | 3 | ||||
-rw-r--r-- | tmux.c | 7 | ||||
-rw-r--r-- | tmux.h | 7 | ||||
-rw-r--r-- | window.c | 7 |
6 files changed, 26 insertions, 10 deletions
diff --git a/GNUmakefile b/GNUmakefile index 629eb3ee..06866f79 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,4 +1,4 @@ -# $Id: GNUmakefile,v 1.20 2008-06-18 16:39:15 nicm Exp $ +# $Id: GNUmakefile,v 1.21 2008-06-18 19:34:50 nicm Exp $ .PHONY: clean @@ -51,6 +51,13 @@ INSTALLDIR= install -d INSTALLBIN= install -g bin -o root -m 555 INSTALLMAN= install -g bin -o root -m 444 +ifeq ($(shell uname),SunOS) +INCDIRS+= -Icompat +SRCS+= compat/strtonum.c +CFLAGS+= -DNO_STRTONUM -DNO_TREE_H -DNO_PATHS_H -DNO_SETPROCTITLE \ + -DNO_DAEMON +endif + ifeq ($(shell uname),Darwin) INCDIRS+= -Icompat SRCS+= compat/strtonum.c @@ -1,4 +1,4 @@ -/* $Id: client.c,v 1.29 2008-06-07 07:27:28 nicm Exp $ */ +/* $Id: client.c,v 1.30 2008-06-18 19:34:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -24,7 +24,6 @@ #include <errno.h> #include <fcntl.h> -#include <paths.h> #include <stdlib.h> #include <string.h> #include <syslog.h> @@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.66 2008-06-18 18:52:44 nicm Exp $ */ +/* $Id: server.c,v 1.67 2008-06-18 19:34:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -24,7 +24,6 @@ #include <errno.h> #include <fcntl.h> -#include <paths.h> #include <poll.h> #include <signal.h> #include <stdio.h> @@ -1,4 +1,4 @@ -/* $Id: tmux.c,v 1.58 2008-06-18 18:52:44 nicm Exp $ */ +/* $Id: tmux.c,v 1.59 2008-06-18 19:34:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -20,7 +20,6 @@ #include <sys/wait.h> #include <errno.h> -#include <paths.h> #include <poll.h> #include <pwd.h> #include <signal.h> @@ -29,6 +28,10 @@ #include <syslog.h> #include <unistd.h> +#ifndef NO_PATHS_H +#include <paths.h> +#endif + #include "tmux.h" #ifdef DEBUG @@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.145 2008-06-18 18:52:44 nicm Exp $ */ +/* $Id: tmux.h,v 1.146 2008-06-18 19:34:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -70,6 +70,11 @@ extern char *__progname; #define TTY_NAME_MAX 32 #endif +#ifdef NO_PATHS_H +#define _PATH_BSHELL "/bin/sh" +#define _PATH_TMP "/tmp/" +#endif + /* Default configuration file. */ #define DEFAULT_CFG ".tmux.conf" @@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.41 2008-06-14 16:47:20 nicm Exp $ */ +/* $Id: window.c,v 1.42 2008-06-18 19:34:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -20,7 +20,6 @@ #include <sys/ioctl.h> #include <fcntl.h> -#include <paths.h> #include <signal.h> #include <stdint.h> #include <stdlib.h> @@ -28,6 +27,10 @@ #include <termios.h> #include <unistd.h> +#ifndef NO_PATHS_H +#include <paths.h> +#endif + #ifdef USE_LIBUTIL_H #include <libutil.h> #else |