From 0f5fa8c9d44d384f151166e415f9692e36d013df Mon Sep 17 00:00:00 2001 From: Tibor Nagy <xnagytibor@gmail.com> Date: Tue, 9 Oct 2018 16:43:34 +0200 Subject: [PATCH] Move regoff_t to regex.h --- include/sys/types.h | 1 - src/header/regex/mod.rs | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/sys/types.h b/include/sys/types.h index 9dabc63c..c4048845 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -20,7 +20,6 @@ typedef long clock_t; typedef int clockid_t; typedef void* timer_t; typedef unsigned long int blkcnt_t; -typedef size_t regoff_t; typedef unsigned char u_char, uchar; typedef unsigned short u_short, ushort; diff --git a/src/header/regex/mod.rs b/src/header/regex/mod.rs index d82a1068..eedc4628 100644 --- a/src/header/regex/mod.rs +++ b/src/header/regex/mod.rs @@ -9,6 +9,8 @@ use platform::types::*; use posix_regex::{PosixRegexBuilder, PosixRegex}; use posix_regex::compile::{Error as CompileError, Token, Range}; +pub type regoff_t = size_t; + #[repr(C)] pub struct regex_t { // Can't be a normal Vec<T> because then the struct size won't be known -- GitLab