aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-05-13 23:27:00 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-05-13 23:27:00 +0000
commitc8cf438d44f7a4cd6700dbf9621329bffd960bf5 (patch)
tree7959216ce7a758ca94acbd13881ee6f434590916 /tmux.c
parente1b4a377222c53a186de6dabca5cb0068a1c7738 (diff)
downloadrtmux-c8cf438d44f7a4cd6700dbf9621329bffd960bf5.tar.gz
rtmux-c8cf438d44f7a4cd6700dbf9621329bffd960bf5.tar.bz2
rtmux-c8cf438d44f7a4cd6700dbf9621329bffd960bf5.zip
Rename all feature flags to HAVE_* and move out of makefiles into a configure
script which must be run before building. Still two makefiles but they are a hell of a lot simpler. HAVE_* also will make it easier to move to $buildsystem if necessary later.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tmux.c b/tmux.c
index 74270496..ca9d1caa 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.115 2009-05-13 22:10:39 nicm Exp $ */
+/* $Id: tmux.c,v 1.116 2009-05-13 23:27:00 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -27,12 +27,12 @@
#include <syslog.h>
#include <unistd.h>
-#ifndef NO_PATHS_H
+#include "tmux.h"
+
+#ifdef HAVE_PATHS_H
#include <paths.h>
#endif
-#include "tmux.h"
-
#ifdef DEBUG
/* DragonFly uses an OpenBSD-like malloc() since 1.6 */
#if defined(__OpenBSD__) || defined(__DragonFly__)
@@ -64,7 +64,7 @@ char *socket_path;
__dead void usage(void);
char *makesockpath(const char *);
-#ifdef NO_PROGNAME
+#ifndef HAVE_PROGNAME
const char *__progname = "tmux";
#endif