summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-11-09 16:41:55 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-11-09 16:44:39 +0000
commit3eb1519bd784076f63fed6678b88f918317a2124 (patch)
treeb0ecce81cfe4e4612b2f8979933a7ea18a876846 /compat.h
parent0dcb6e5eb4bad32ef5676c533ece81e988a1c03b (diff)
Scaffold for oss-fuzz, from Sergey Nizovtsev.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index ec125ced..6e26a02c 100644
--- a/compat.h
+++ b/compat.h
@@ -52,6 +52,9 @@
#ifndef __packed
#define __packed __attribute__ ((__packed__))
#endif
+#ifndef __weak
+#define __weak __attribute__ ((__weak__))
+#endif
#ifndef ECHOPRT
#define ECHOPRT 0
@@ -395,6 +398,11 @@ int utf8proc_mbtowc(wchar_t *, const char *, size_t);
int utf8proc_wctomb(char *, wchar_t);
#endif
+#ifdef NEED_FUZZING
+/* tmux.c */
+#define main __weak main
+#endif
+
/* getopt.c */
extern int BSDopterr;
extern int BSDoptind;