summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2017-01-25 13:49:01 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2017-01-25 13:49:01 +0000
commit3e495b4001889596ac6b148cffd1735343a1333e (patch)
tree261c29ef0ab2fd66d04a9397227effeab14de2e7 /compat.h
parent418ab1a553f46996d3524bab5c81b2c66fa7efc6 (diff)
compat/* should not include tmux.h.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/compat.h b/compat.h
index 94c0c71e..42479d18 100644
--- a/compat.h
+++ b/compat.h
@@ -17,6 +17,12 @@
#ifndef COMPAT_H
#define COMPAT_H
+#include <sys/types.h>
+#include <sys/uio.h>
+
+#include <limits.h>
+#include <stdio.h>
+
#ifndef __GNUC__
#define __attribute__(a)
#endif
@@ -62,6 +68,12 @@ typedef uint64_t u_int64_t;
#define pledge(s, p) (0)
#endif
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#else
+#include <inttypes.h>
+#endif
+
#ifdef HAVE_QUEUE_H
#include <sys/queue.h>
#else
@@ -108,12 +120,6 @@ typedef uint64_t u_int64_t;
#include "compat/imsg.h"
#endif
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#else
-#include <inttypes.h>
-#endif
-
#ifdef BROKEN_CMSG_FIRSTHDR
#undef CMSG_FIRSTHDR
#define CMSG_FIRSTHDR(mhdr) \