summaryrefslogtreecommitdiff
path: root/src/csplit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/csplit.c')
-rw-r--r--src/csplit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/csplit.c b/src/csplit.c
index fee898a6e..f3a879a8e 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -36,7 +36,11 @@
# define INT_MAX ((int) (UINT_MAX >> 1))
#endif
-#include "regex.h"
+#if WITH_REGEX
+# include <regex.h>
+#else
+# include <rx.h>
+#endif
#include "system.h"
#include "version.h"
#include "error.h"