diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-31 14:26:26 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-31 14:26:26 +0000 |
commit | 08d9f46aae69e942a5db9a20463c27ac3c0ebbb8 (patch) | |
tree | 9eb92bf6763c7f24c0c1a4003b39f650f60b33d6 /tmux.h | |
parent | 48ad0431fb46871cb4a045b275c36ff524cc0fa0 (diff) | |
download | rtmux-08d9f46aae69e942a5db9a20463c27ac3c0ebbb8.tar.gz rtmux-08d9f46aae69e942a5db9a20463c27ac3c0ebbb8.tar.bz2 rtmux-08d9f46aae69e942a5db9a20463c27ac3c0ebbb8.zip |
Make it build/run on Linux.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 35 |
1 files changed, 33 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.75 2007-10-30 11:10:33 nicm Exp $ */ +/* $Id: tmux.h,v 1.76 2007-10-31 14:26:26 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -23,17 +23,33 @@ #define RB_AUGMENT(x) do {} while (0) #include <sys/param.h> -#include <sys/tree.h> + +#ifndef NO_QUEUE_H #include <sys/queue.h> +#else +#include "compat/queue.h" +#endif + +#ifndef NO_TREE_H +#include <sys/tree.h> +#else +#include "compat/tree.h" +#endif #include <poll.h> +#include <signal.h> #include <stdarg.h> #include <stdio.h> +#include <stdint.h> #include "array.h" extern char *__progname; +#ifndef INFTIM +#define INFTIM -1 +#endif + #ifndef __dead #define __dead __attribute__ ((__noreturn__)) #endif @@ -511,6 +527,21 @@ struct binding { }; ARRAY_DECL(bindings, struct binding *); +#ifdef NO_STRTONUM +/* strtonum.c */ +long long strtonum(const char *, long long, long long, const char **); +#endif + +#ifdef NO_STRLCPY +/* strlcpy.c */ +size_t strlcpy(char *, const char *, size_t); +#endif + +#ifdef NO_STRLCAT +/* strlcat.c */ +size_t strlcat(char *, const char *, size_t); +#endif + /* tmux.c */ extern volatile sig_atomic_t sigwinch; extern volatile sig_atomic_t sigterm; |