vi: tweak regex.h include

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2011-07-03 03:19:43 +02:00
parent 104e01409d
commit 066f399566

View File

@ -161,8 +161,11 @@
//usage: )
//usage: "\n -H Short help regarding available features"
#include <regex.h>
#include "libbb.h"
/* Should be after libbb.h: on some systems regex.h needs sys/types.h: */
#if ENABLE_FEATURE_VI_REGEX_SEARCH
# include <regex.h>
#endif
/* the CRASHME code is unmaintained, and doesn't currently build */
#define ENABLE_FEATURE_VI_CRASHME 0