~ttx/openldap/lucid-gssapi-495418

« back to all changes in this revision

Viewing changes to include/ac/regex.h

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2008-07-10 14:45:49 UTC
  • Revision ID: james.westby@ubuntu.com-20080710144549-wck73med0e72gfyo
Tags: upstream-2.4.10
ImportĀ upstreamĀ versionĀ 2.4.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Generic Regex */
 
2
/* $OpenLDAP: pkg/ldap/include/ac/regex.h,v 1.17.2.3 2008/02/11 23:26:40 kurt Exp $ */
 
3
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
 
4
 *
 
5
 * Copyright 1998-2008 The OpenLDAP Foundation.
 
6
 * All rights reserved.
 
7
 *
 
8
 * Redistribution and use in source and binary forms, with or without
 
9
 * modification, are permitted only as authorized by the OpenLDAP
 
10
 * Public License.
 
11
 *
 
12
 * A copy of this license is available in file LICENSE in the
 
13
 * top-level directory of the distribution or, alternatively, at
 
14
 * <http://www.OpenLDAP.org/license.html>.
 
15
 */
 
16
 
 
17
#ifndef _AC_REGEX_H_
 
18
#define _AC_REGEX_H_
 
19
 
 
20
#ifdef HAVE_SYS_TYPES_H
 
21
#include <sys/types.h>
 
22
#endif
 
23
 
 
24
#ifndef HAVE_REGEX_H
 
25
/*      NO POSIX REGEX!!
 
26
 *  You'll need to install a POSIX compatible REGEX library.
 
27
 *  Either Henry Spencer's or GNU regex will do.
 
28
 */
 
29
#error "No POSIX REGEX available."
 
30
 
 
31
#elif HAVE_GNUREGEX_H
 
32
        /* system has GNU gnuregex.h */
 
33
#       include <gnuregex.h>
 
34
#else
 
35
        /* have regex.h, assume it's POSIX compliant */
 
36
#       include <regex.h>
 
37
#endif /* regex.h */
 
38
 
 
39
#endif /* _AC_REGEX_H_ */