mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Scaffold for oss-fuzz, from Sergey Nizovtsev.
This commit is contained in:
8
compat.h
8
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;
|
||||
|
Reference in New Issue
Block a user