Ignore:
Timestamp:
Oct 26, 2025, 12:17:47 PM (16 hours ago)
Author:
katerina
Message:

Fix for ticket #476 (move logfile monitoring module from PCRE to PCRE2).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_log_parse_generic.c

    r481 r588  
    2222#include <time.h>
    2323
    24 /* Debian/Ubuntu: libpcre3-dev */
    25 #ifdef HAVE_PCRE_PCRE_H
    26 #include <pcre/pcre.h>
     24/* Debian/Ubuntu: libpcre2-dev */
     25#define PCRE2_CODE_UNIT_WIDTH 8
     26#ifdef HAVE_PCRE2_PCRE2_H
     27#include <pcre2/pcre2.h>
    2728#else
    28 #include <pcre.h>
     29#include <pcre2.h>
    2930#endif
    3031
     
    3435
    3536struct sh_fileinfo_generic {
    36   pcre * line_regex;
    37   int  * line_ovector;         /* captured substrings     */
    38   int    line_ovecnum;         /* how many captured       */
     37  pcre2_code        * line_regex;
     38  pcre2_match_data  * line_match_data;      /* captured substrings     */
     39  int                 line_ovecnum;         /* how many captured       */
    3940 
    4041  int    pos_host;
Note: See TracChangeset for help on using the changeset viewer.