summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-01-22 01:22:24 +0300
committerIgor Pashev <pashev.igor@gmail.com>2012-01-22 01:22:24 +0300
commit2059328e2f880d6b55d2df0a767fb798dc19206c (patch)
tree4b9da12d597da33aee6f672e15211ddc0b991f79
parent7ddd430bf93e55b1497f448a68bad9ac46938e74 (diff)
downloadutil-linux-old-2059328e2f880d6b55d2df0a767fb798dc19206c.tar.gz
re_comp and re_exec are in re_comp.h on Illumos
-rw-r--r--text-utils/more.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/text-utils/more.c b/text-utils/more.c
index 929e4a0b..afa83119 100644
--- a/text-utils/more.c
+++ b/text-utils/more.c
@@ -51,6 +51,7 @@
#include <errno.h>
#include <fcntl.h>
#include <termios.h>
+#include <limits.h>
#include <setjmp.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
@@ -62,9 +63,13 @@
#include "xalloc.h"
#include "widechar.h"
+#if __sun__
+#include <re_comp.h>
+#else
#define _REGEX_RE_COMP
#include <regex.h>
#undef _REGEX_RE_COMP
+#endif
#ifndef XTABS
#define XTABS TAB3