~ubuntu-branches/ubuntu/trusty/proftpd-dfsg/trusty

« back to all changes in this revision

Viewing changes to include/regexp.h

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-10-06 12:57:29 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20111006125729-wiq6d3yzf2ensafj
Tags: 1.3.4~rc3-1
* New upstream pre-release.
* Refreshed all patches.
* Changed patch xferstats.holger-preiss to fix a few warnings and use
  Getopt::Std instead of the old getopts.pl which will be removed soon or
  later in perl5. Thanks lintian.
* Policy bumped to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 *
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
 
17
 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18
18
 *
19
19
 * As a special exemption, The ProFTPD Project team and other respective
20
20
 * copyright holders give permission to link this program with OpenSSL, and
23
23
 */
24
24
 
25
25
/* Regular expression management
26
 
 * $Id: regexp.h,v 1.7 2011/03/03 21:38:54 castaglia Exp $
 
26
 * $Id: regexp.h,v 1.9 2011/05/23 20:35:35 castaglia Exp $
27
27
 */
28
28
 
29
29
#ifndef PR_REGEXP_H
37
37
#ifdef PR_USE_PCRE
38
38
# include <pcre.h>
39
39
# include <pcreposix.h>
 
40
 
 
41
/* Make sure that we are using PCRE-7.0 or later. */
 
42
# if defined(PCRE_MAJOR) && PCRE_MAJOR >= 7 && \
 
43
     defined(PCRE_MINOR) && PCRE_MINOR >= 0
40
44
# define PR_USE_REGEX           1
 
45
# else
 
46
# error "pcre-7.0 or later required"
 
47
# endif /* PCRE-7.0 or later */
41
48
#else
42
49
# ifdef HAVE_REGEX_H
43
50
# include <regex.h>