Hi, I got the report from an OpenBSD-3.8 user who get the following error while trying to compile libprelude:
/usr/include/sys/time.h:52: error: redefinition of `struct rpl_timespec' It look like the SYS_TIME_H_DEFINES_STRUCT_TIMESPEC assignment is never made due to the wrong variable being tested. Patch attached, Regards, -- Yoann Vandoorselaere | Responsable R&D / CTO | PreludeIDS Technologies Tel: +33 (0)8 70 70 21 58 Fax: +33(0)4 78 42 21 58 http://www.prelude-ids.com
diff --git a/m4/time_h.m4 b/m4/time_h.m4 index 3f543a1..d42a635 100644 --- a/m4/time_h.m4 +++ b/m4/time_h.m4 @@ -65,7 +65,7 @@ AC_DEFUN([gl_CHECK_TYPE_STRUCT_TIMESPEC], [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], [gl_cv_sys_struct_timespec_in_sys_time_h=yes], [gl_cv_sys_struct_timespec_in_sys_time_h=no])]) - if test $gl_cv_sys_struct_timespec_in_time_h = yes; then + if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 fi fi